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
Esempio n. 2
0
  public static int getSecond(Time time) {
    LocalTime localTime = time.toLocalTime();

    return localTime.getSecond();
  }
Esempio n. 3
0
  public static int getMinute(Time time) {
    LocalTime localTime = time.toLocalTime();

    return localTime.getMinute();
  }
Esempio n. 4
0
  public static int getHour(Time time) {
    LocalTime localTime = time.toLocalTime();

    return localTime.getHour();
  }