java.sql.Timestamp.Timestamp(long time)の使い方
Javaコード
package zhongg;
public class Timestampdemo {
public static void main(String[] args) {
java.util.Date today = new java.util.Date();
java.sql.Timestamp ts1 = new java.sql.Timestamp(today.getTime());
long cfTime1 = ts1.getTime();
System.out.println(“message:"+cfTime1);
}
}
結果
message:1509034196288