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.minusWeeks(120); System.out.println(d); }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); OffsetDateTime d = o.minusHours(120); System.out.println(d); }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); int l = o.getDayOfMonth(); System.out.println(l);// w ww.ja va 2 s . c o m }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); OffsetDateTime d = o.withSecond(34); System.out.println(d); }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); OffsetDateTime d = o.plusDays(20); System.out.println(d); }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); OffsetDateTime d = o.withMonth(3); System.out.println(d); }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); OffsetDateTime d = o.minusYears(20); System.out.println(d); }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); OffsetDateTime d = o.withYear(2010); System.out.println(d); }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); System.out.println(o.getSecond()); }
From source file:Main.java
public static void main(String[] args) { OffsetDateTime o = OffsetDateTime.now(); OffsetDateTime d = o.plusHours(20); System.out.println(d); }