Java Timestamp Parse parse(java.sql.Timestamp timestamp)

Here you can find the source of parse(java.sql.Timestamp timestamp)

Description

parse

License

Apache License

Declaration

public static Date parse(java.sql.Timestamp timestamp) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Date;

public class Main {
    public static Date parse(java.sql.Timestamp timestamp) {
        if (timestamp == null)
            return null;
        return new Date(timestamp.getTime() * 1000);
    }//from  w w w  . j a  v  a  2 s.  c  om
}

Related

  1. parseAsCassandraTimestamp(String dateString)
  2. parseDateTimeToTimestamp(String string)
  3. parseHeaderDate(String timestamp)
  4. parseSnapshotTimestamp(final String tstamp)