Java ThaiBuddhistDate get from ThaiBuddhistChronology

Description

Java ThaiBuddhistDate get from ThaiBuddhistChronology

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);
  }/*ww w .ja v  a 2  s.  c o m*/
}



PreviousNext

Related