Overview | Methods | This Package | All Packages
OverviewMethodsThis PackageAll Packages
Locale.getCalendarType
Retrieves the current calendar type.
Syntax
public int getCalendarType()
Return Value
Returns an integer value that represents the current calendar type.
Remarks
Use this method to obtain the current calendar type in use within this locale. The information returned from this method can be one of the following values:
Value | Calendar Description |
1 | Gregorian (as used in the United States) |
2 | Gregorian (using English strings) |
3 | Era: Year of the Emperor (Japan) |
4 | Era: Year of Taiwan |
5 | Tangun Era (Korea) |
Use the fields of the Locale.CalendarType class to determine the type of calendar that was returned by this method.
See Also setCalendarType