private void jButton4ActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jButton4ActionPerformed // TODO add your handling code here: System.out.println(dateNow.toLocalDate()); System.out.println(timeNow.toLocalTime()); } // GEN-LAST:event_jButton4ActionPerformed
public static int getSecond(Time time) { LocalTime localTime = time.toLocalTime(); return localTime.getSecond(); }
public static int getMinute(Time time) { LocalTime localTime = time.toLocalTime(); return localTime.getMinute(); }
public static int getHour(Time time) { LocalTime localTime = time.toLocalTime(); return localTime.getHour(); }