Java Timestamp Convert To convertToEpochMillis(java.sql.Timestamp ts)

Here you can find the source of convertToEpochMillis(java.sql.Timestamp ts)

Description

convert To Epoch Millis

License

Open Source License

Declaration

public static long convertToEpochMillis(java.sql.Timestamp ts) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static long convertToEpochMillis(java.sql.Timestamp ts) {
        return ts.getTime();
    }/*from  www.ja v  a 2 s  .  c o m*/
}

Related

  1. convertTimestampToString(Timestamp dateTime, String dateFormat)
  2. convertTimestampToString(Timestamp str)
  3. convertTimestampToStringWithoutTime(final Timestamp ts)
  4. convertToDate(Timestamp aTimeStamp)
  5. convertToDate(Timestamp timestamp)
  6. convertToISO8601String(java.sql.Timestamp ts)
  7. convertToString(Timestamp dateData, String pattern, Locale locale)
  8. timestamp(Timestamp timestamp)
  9. Timestamp2Arch(Timestamp ts)