I wish to use the timestamp class, as the first method is deprecated, I wish to use the second one. What is the common way to convert the year, month, date, hour, minute, second, and nano to a long value?
Timestamp(int year, int month, int date, int hour, int minute, int second, int nano)
Deprecated. instead use the constructor Timestamp(long millis)
Constructs a Timestamp object using a milliseconds time value.