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

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

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

    return localTime.getHour();
  }