List of usage examples for java.time LocalTime NOON
LocalTime NOON
To view the source code for java.time LocalTime NOON.
Click Source Link
From source file:Main.java
public static void main(String[] args) { Duration duration = Duration.between(LocalTime.MIDNIGHT, LocalTime.NOON); System.out.println(duration.getSeconds()); System.out.println(Duration.ofSeconds(2340).compareTo(duration)); }
From source file:Main.java
public static void main(String[] args) { Duration duration = Duration.between(LocalTime.MIDNIGHT, LocalTime.NOON); System.out.println(duration.isNegative()); duration = Duration.between(LocalTime.NOON, LocalTime.MIDNIGHT); System.out.println(duration.isNegative()); }
From source file:Main.java
public static void main(String[] args) { Duration duration = Duration.between(LocalTime.MIDNIGHT, LocalTime.NOON); System.out.println(duration.getSeconds()); duration = duration.minus(duration); System.out.println(duration.getSeconds()); }
From source file:Main.java
public static void main(String[] args) { Duration duration = Duration.between(LocalTime.MIDNIGHT, LocalTime.NOON); System.out.println(duration.getSeconds()); duration = duration.plus(duration);//from w ww .j a v a2 s . c o m System.out.println(duration.getSeconds()); }
From source file:Main.java
public static void main(String[] args) { Duration duration = Duration.between(LocalTime.MIDNIGHT, LocalTime.NOON); System.out.println(duration.getSeconds()); duration = duration.minusDays(3);/*from ww w. j a v a 2 s. c o m*/ System.out.println(duration.getSeconds()); }
From source file:Main.java
public static void main(String[] args) { Duration duration = Duration.between(LocalTime.MIDNIGHT, LocalTime.NOON); System.out.println(duration.getSeconds()); duration = duration.plusSeconds(4000); System.out.println(duration.getSeconds()); }
From source file:Main.java
public static void main(String[] args) { Duration duration = Duration.between(LocalTime.MIDNIGHT, LocalTime.NOON); System.out.println(duration.getSeconds()); duration = duration.plusHours(4);/* w w w . j a va2 s .com*/ System.out.println(duration.getSeconds()); }
From source file:Main.java
public static void main(String[] args) { Duration duration = Duration.between(LocalTime.MIDNIGHT, LocalTime.NOON); System.out.println(duration.getSeconds()); duration = duration.plusDays(4);//from w w w.j ava 2s. c om System.out.println(duration.getSeconds()); }
From source file:Main.java
public static void main(String[] args) { Duration duration = Duration.between(LocalTime.MIDNIGHT, LocalTime.NOON); System.out.println(duration.getSeconds()); duration = duration.plusMillis(4000); System.out.println(duration.getSeconds()); }
From source file:Main.java
public static void main(String[] args) { Duration duration = Duration.between(LocalTime.MIDNIGHT, LocalTime.NOON); System.out.println(duration.getNano()); duration = duration.minusNanos(3);//from w ww. j a v a2 s . c o m System.out.println(duration.getNano()); }