java.sql.Timestamp.after(Timestamp ts)の使い方

1.Javaコード
package com.cft.sample;
public class AfterDemo {
public static void main(String[] args) {
java.sql.Timestamp ts1 = java.sql.Timestamp.valueOf(“2017-04-06 19:01:10”);
java.sql.Timestamp ts2 = java.sql.Timestamp.valueOf(“2016-04-06 18:01:10”);

System.out.println(ts1.after(ts2));
}

}
2.結果 true

Comments are closed.