Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Pascal Surget
Added: Sep 11, 2018 2:25 PM
Views: 2
  1.  public Timestamp getCurTS() {
  2.         Calendar calendar = Calendar.getInstance();
  3.         java.sql.Timestamp ts = new Timestamp(calendar.getTime().getTime());
  4.         return ts;
  5.     }