Here you can find the source of toInstant(final Timestamp timestamp)
public static Instant toInstant(final Timestamp timestamp)
//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 }