List of usage examples for java.time OffsetDateTime now
public static OffsetDateTime now()
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); OffsetDateTime d = o.plusNanos(20); System.out.println(d); }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); OffsetDateTime d = o.minusMinutes(120); System.out.println(d);//from w w w . java 2 s. co m }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); OffsetDateTime d = o.plusSeconds(20); System.out.println(d); }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); int l = o.getYear(); System.out.println(l); }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); OffsetDateTime d = o.minusDays(120); System.out.println(d); }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); OffsetDateTime d = o.withDayOfMonth(1); System.out.println(d);/*from w w w . j a va 2 s . co m*/ }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); OffsetDateTime d = o.plusWeeks(20); System.out.println(d); }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); System.out.println(o.getMinute()); }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); OffsetDateTime d = o.plusMinutes(20); System.out.println(d); }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); OffsetDateTime d = o.withDayOfYear(123); System.out.println(d);//from ww w . j a v a 2s .com }