ThaiBuddhistChronology dateEpochDay() method in Java with Example
The dateEpochDay() method of java.time.chrono.ThaiBuddhistChronology class is used get the local date according to ThaiBuddhist calendar system from the Epoch Day.
public ThaiBuddhistDate dateEpochDay(long epochDay)
Parameter: This method takes the epochDay of type long as a parameter.
Return Value: This method returns the local date according to ThaiBuddhist calendar system from the Epoch Day.
Exception: This method throws DateTimeException if the given epoch day is unable to form structured date.
Below are the examples to illustrate the dateEpochDay() method:
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course.
current ThaiBuddhistDate is: ThaiBuddhist BE 2564-06-25 ThaiBuddhistDate(according to ephochday) is: ThaiBuddhist BE 2577-03-22
current ThaiBuddhistDate is: ThaiBuddhist BE 2564-06-25 ThaiBuddhistDate(according to ephochday) is: ThaiBuddhist BEFORE_BE 271279-04-21