List of usage examples for java.time YearMonth now
public static YearMonth now()
From source file:Main.java
public static void main(String[] args) { YearMonth y = YearMonth.now(); System.out.println(y.isAfter(YearMonth.now())); }
From source file:Main.java
public static void main(String[] args) { YearMonth y = YearMonth.now(); System.out.println(y.toString()); }
From source file:Main.java
public static void main(String[] args) { YearMonth y = YearMonth.now(); System.out.println(y.isBefore(YearMonth.now())); }
From source file:Main.java
public static void main(String[] args) { YearMonth y = YearMonth.now(); System.out.println(y.compareTo(YearMonth.now())); }
From source file:Main.java
public static void main(String[] args) { YearMonth y = YearMonth.now(); System.out.println(y.hashCode()); }
From source file:Main.java
public static void main(String[] args) { YearMonth y = YearMonth.now(); System.out.println(y.equals(YearMonth.now())); }
From source file:Main.java
public static void main(String[] args) { YearMonth y = YearMonth.now(); YearMonth s = y.withMonth(3); System.out.println(s); }
From source file:Main.java
public static void main(String[] args) { YearMonth y = YearMonth.now(); YearMonth s = y.with(YearMonth.of(2013, 01)); System.out.println(s);/*from www.j ava2s . co m*/ }
From source file:Main.java
public static void main(String[] args) { YearMonth y = YearMonth.now(); System.out.println(y.isValidDay(12)); }
From source file:Main.java
public static void main(String[] args) { YearMonth y = YearMonth.now(); YearMonth s = y.plusYears(3); System.out.println(s); }