コード例 #1
0
ファイル: Helper.java プロジェクト: ravidcohn/Brings-1
 public static String getCurrentTime() {
   LocalDateTime now = LocalDateTime.now();
   int hour = now.getHourOfDay();
   int minute = now.getMinuteOfHour();
   int second = now.getSecondOfMinute();
   String time = hour + ":" + minute + ":" + second;
   return time;
 }