Java Timestamp Parse parseTimestamp(Date date)

Here you can find the source of parseTimestamp(Date date)

Description

parse Timestamp

License

Open Source License

Declaration

public static java.sql.Timestamp parseTimestamp(Date date) 

Method Source Code

//package com.java2s;

import java.util.Date;

public class Main {

    public static java.sql.Timestamp parseTimestamp(Date date) {
        if (date == null)
            return null;

        long t = date.getTime();

        return new java.sql.Timestamp(t);
    }/*w  ww.  jav  a 2s  .  co m*/
}

Related

  1. parseDateTimeToTimestamp(String string)
  2. parseHeaderDate(String timestamp)
  3. parseSnapshotTimestamp(final String tstamp)
  4. parseSQLiteTimestamp(String dd)
  5. parseStopTime(String timestamp, String timezone)
  6. parseTimestamp(Date date)
  7. parseTimestamp(final String format, final String time)
  8. parseTimestamp(final String s)
  9. parseTimeStamp(final String... key)