List of usage examples for java.time.chrono HijrahChronology INSTANCE
HijrahChronology INSTANCE
To view the source code for java.time.chrono HijrahChronology INSTANCE.
Click Source Link
From source file:Main.java
public static void main(String[] args) { LocalDate date = LocalDate.of(1996, Month.OCTOBER, 29); System.out.printf("%s%n", toString(date, JapaneseChronology.INSTANCE)); System.out.printf("%s%n", toString(date, MinguoChronology.INSTANCE)); System.out.printf("%s%n", toString(date, ThaiBuddhistChronology.INSTANCE)); System.out.printf("%s%n", toString(date, HijrahChronology.INSTANCE)); System.out.printf("%s%n", fromString("10/29/0008 H", JapaneseChronology.INSTANCE)); System.out.printf("%s%n", fromString("10/29/0085 1", MinguoChronology.INSTANCE)); System.out.printf("%s%n", fromString("10/29/2539 B.E.", ThaiBuddhistChronology.INSTANCE)); System.out.printf("%s%n", fromString("6/16/1417 1", HijrahChronology.INSTANCE)); }