Here you can find the source of toTimestamp(final Instant instant)
public static Timestamp toTimestamp(final Instant instant)
//package com.java2s; import java.sql.Timestamp; import java.time.Instant; public class Main { /** TODO: Documentation */ public static Timestamp toTimestamp(final Instant instant) { return new Timestamp(instant.toEpochMilli()); }//from w w w.ja v a2s .c om }