List of usage examples for java.time Period toString
@Override
public String toString()
From source file:Main.java
public static void main(String[] args) { Period p = Period.ZERO; System.out.println(p.toString()); }
From source file:Main.java
public static void main(String[] args) { Period p = Period.ofDays(12); System.out.println(p.toString()); }
From source file:Main.java
public static void main(String[] args) { Period p = Period.ofDays(12); System.out.println(p.toString()); }
From source file:Main.java
public static void main(String[] args) { Period p = Period.ofWeeks(12); System.out.println(p.toString()); }
From source file:Main.java
public static void main(String[] args) { Period p = Period.ofYears(12); System.out.println(p.toString()); }
From source file:Main.java
public static void main(String[] args) { Period p = Period.ofMonths(12); System.out.println(p.toString()); }
From source file:Main.java
public static void main(String[] args) { Period p = Period.parse("P5D"); System.out.println(p.toString()); }
From source file:Main.java
public static void main(String[] args) { Period p = Period.of(2011, 12, 12); System.out.println(p.toString()); }
From source file:Main.java
public static void main(String[] args) { Period p = Period.from(Period.ofMonths(12)); System.out.println(p.toString()); }