Java ThaiBuddhistDate class

Description

Java ThaiBuddhistDate class

import java.time.chrono.ThaiBuddhistChronology;
import java.time.chrono.ThaiBuddhistDate;

public class Main {
  public static void main(String[] args) {
    ThaiBuddhistChronology thaiBuddhistChrono = ThaiBuddhistChronology.INSTANCE;
    ThaiBuddhistDate now = thaiBuddhistChrono.dateNow();
    ThaiBuddhistDate now2 = ThaiBuddhistDate.now();
    System.out.println("Current Date in Thai Buddhist: " + now);
    System.out.println("Current Date in Thai Buddhist: " + now2);
  }/*from   w w  w.j a v a 2  s .co m*/
}



PreviousNext

Related