List of usage examples for java.time Period ofMonths
public static Period ofMonths(int months)
From source file:Main.java
public static void main(String[] args) { Period p = Period.ofMonths(1); Period l = p.withDays(10); System.out.println(l); }
From source file:Main.java
public static void main(String[] args) { Period p = Period.ofMonths(123); Period l = p.negated(); System.out.println(l); }
From source file:Main.java
public static void main(String[] args) { Period p = Period.ofMonths(1); Period l = p.multipliedBy(10); System.out.println(l); }
From source file:Main.java
public static void main(String[] args) { Period p = Period.ofMonths(1); Period l = p.minusMonths(10); System.out.println(l); }
From source file:Main.java
public static void main(String[] args) { Period p = Period.ofMonths(1); Period l = p.plusDays(12); System.out.println(l); }
From source file:Main.java
public static void main(String[] args) { Period p = Period.ofMonths(1); Period l = p.withYears(10); System.out.println(l); }
From source file:Main.java
public static void main(String[] args) { Period p = Period.ofMonths(1); Period l = p.plusYears(12); System.out.println(l); }
From source file:Main.java
public static void main(String[] args) { Period p = Period.ofMonths(1); Period l = p.minusDays(10); System.out.println(l); }
From source file:Main.java
public static void main(String[] args) { Period p = Period.ofMonths(1); Period l = p.plus(Period.ofMonths(1)); System.out.println(l); }
From source file:Main.java
public static void main(String[] args) { Period p = Period.ofMonths(1); Period l = p.minus(Period.ofMonths(1)); System.out.println(l);/* w w w. j ava 2 s. c o m*/ }