Java Timestamp Convert To toInstant(final Timestamp timestamp)

Here you can find the source of toInstant(final Timestamp timestamp)

Description

TODO: Documentation

License

Open Source License

Declaration

public static Instant toInstant(final Timestamp timestamp) 

Method Source Code


//package com.java2s;
import java.sql.Timestamp;

import java.time.Instant;

public class Main {
    /** TODO: Documentation */
    public static Instant toInstant(final Timestamp timestamp) {
        return Instant.ofEpochMilli(timestamp.getTime());
    }//ww w  .  j a v a  2 s .  c o m
}

Related

  1. toEnglishDateTime(java.sql.Timestamp ts)
  2. toEnglishHours(java.sql.Timestamp ts)
  3. toEPICSTime(java.sql.Timestamp timestamp)
  4. toFormatedString(final Timestamp ts, final String timeZoneId)
  5. toGmtTimestampString(Timestamp timestamp)
  6. toJavaDate(Timestamp dt)
  7. toLocalDateTime(Timestamp timestamp)
  8. toMediaWikiString(Timestamp timestamp)