Posted By:
Amit_Kapur
Posted On:
Thursday, January 30, 2003 03:37 AM
In Thai Locale the Default year is 543 years ahead of the English Year. Thailand uses a Buddhist calendar whose year numbering begins the year Buddha died. A Thai date would be identical to a standard date except that the Thai year would be 543 greater than the standard year. Thus, December 31, 2001 would be expressed as December 31, 2544 in the Thai calendar. Now I have a machine where the default locale as well as Default Time zone is set to Thailand specific locale n timezone respectively. I am trying to get the date printed using Java Api for Gregorian Calendar GregorianCalendar gCal = new GregorianCalendar(TimeZone.getDefault(), Locale.getDefault()); System.out.println("YEA
More>>
In Thai Locale the Default year is 543 years ahead of the English Year.
Thailand uses a Buddhist calendar whose year numbering begins the year Buddha died. A Thai date would be identical to a standard date except that the Thai year would be 543 greater than the standard year. Thus, December 31, 2001 would be expressed as December 31, 2544 in the Thai calendar.
Now I have a machine where the default locale as well as Default Time zone is set to Thailand specific locale n timezone respectively. I am trying to get the date printed using Java Api for Gregorian Calendar
GregorianCalendar gCal = new GregorianCalendar(TimeZone.getDefault(), Locale.getDefault());
System.out.println("YEAR: " + gCal.get(Calendar.YEAR));
But this is giving me the result Year as 2003 although it should be 2546.
Kindly guide me on this
Regards
Amit
<<Less