Mega Code Archive

 
Categories / Java Book / 003 Essential Classes
 

0197 Constants for WeekDay

static int MONDAY Monday. static int TUESDAY Tuesday. static int WEDNESDAY Wednesday. static int THURSDAY Thursday. static int FRIDAY Friday. static int SATURDAY Saturday. static int SUNDAY Sunday. Constants for display name format static int LONG For getDisplayName and getDisplayNames indicating a long name, such as "January". static int SHORT For getDisplayName and getDisplayNames indicating a short name, such as "Jan". static int ALL_STYLES For getDisplayNames indicating names in all styles, such as "January" and "Jan". Constants for Timezone static int DST_OFFSET Field number for get and set indicating the daylight savings offset in milliseconds. static int FIELD_COUNT The number of distinct fields recognized by get and set. static int ZONE_OFFSET Field number for get and set indicating the raw offset from GMT in milliseconds. Create new Calendar instance static Calendar getInstance() Gets a calendar using the default time zone and locale. static Calendar getInstance(Locale aLocale) Gets a calendar using the default time zone and specified locale. static Calendar getInstance(TimeZone zone) Gets a calendar using the specified time zone and default locale. static Calendar getInstance(TimeZone zone, Locale aLocale) Gets a calendar with the specified time zone and locale.