package fr.yunes;
import java.time.Clock;
import java.time.Instant;
public class Date2 {
public static void main(String [] args) {
Clock horlogeSysteme = Clock.systemDefaultZone();
System.out.println(horlogeSysteme);
Instant maintenant = Instant.now(horlogeSysteme);
System.out.println("Nombre de secondes depuis EPOCH "+maintenant.getEpochSecond());
System.out.println(maintenant);
Instant dans15minutes = maintenant.plusSeconds(15*60);
System.out.println(dans15minutes);
}
}