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 24, 2018 12:18 AM
Views: 3
  1.         public java.sql.Timestamp getCurrentTime(){
  2.  
  3.                 Calendar calendar = Calendar.getInstance();
  4.                 java.util.Date now = calendar.getTime();
  5.                 java.sql.Timestamp curTS = new java.sql.Timestamp(now.getTime());
  6.                
  7.                 return curTS;
  8.         }