List of usage examples for java.time YearMonth now
public static YearMonth now(Clock clock)
From source file:Main.java
public static void main(String[] args) { YearMonth y = YearMonth.now(Clock.systemUTC()); System.out.println(y); }
From source file:Main.java
public static void main(String[] args) { YearMonth y = YearMonth.now(ZoneId.systemDefault()); System.out.println(y); }