Adds the specified (signed) amount of time to the given calendar field, based on the calendar's rules.
After (WhenAsGregorianCalendar) AsBoolean
Returns whether this calendar represents a time after the time represented by the specified calendar.
AM_PMAsInt
APRILAsInt
AUGUSTAsInt
Before (WhenAsGregorianCalendar) AsBoolean
Returns whether this calendar represents a time before the time represented by the specified calendar.
Clear
Sets all the calendar field values and the time value of this calendar undefined.
CompareTo (CalendarAsGregorianCalendar) AsInt
Compares the time values represented by two calendar objects. Returns 0 if the time represented by the argument is equal to the time represented by this calendar; a value less than 0 if the time of this calendar is before the time represented by the argument; and a value greater than 0 if the time of this calendar is after the time represented by the argument.
DAY_OF_MONTHAsInt
DAY_OF_WEEKAsInt
DAY_OF_WEEK_IN_MONTHAsInt
DAY_OF_YEARAsInt
DECEMBERAsInt
DST_OFFSETAsInt
Equals (CalendarAsGregorianCalendar) AsBoolean
Returns whether this calendar represents the same time value as the specified calendar.
ERAAsInt
ERA_ADAsInt
ERA_BCAsInt
FEBRUARYAsInt
FIELD_STYLE_LONGAsInt
FIELD_STYLE_NARROWAsInt
FIELD_STYLE_SHORTAsInt
FirstDayOfWeekAsInt
Gets or sets what the first day of the week is; e.g., SUNDAY in the U.S., MONDAY in France.
Format (PatternAsString, LocaleAsObject) AsString
Formats the time value represented by this calendar into a date/time string with the given pattern and locale (either a LOCALE constant or a language code, e.g. "es" for Spanish). All pattern letters can be found at: https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html All language codes can be found at: http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
Formats the time value represented by this calendar into a date/time string with the given formatting styles (FORMAT_STYLE constant) and locale (either a LOCALE constant or a language code, e.g. "es" for Spanish). All language codes can be found at: http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
Returns a CalendarDifference object containing the difference between the time represented by this calendar and the time represented by the specified calendar. Note that the number of days of difference is computed only with the date fields.
Returns the string representation of the calendar field value in the given style (one of the FIELD_STYLE constants) and locale (either a LOCALE constant or a language code, e.g. "es" for Spanish). All language codes can be found at: http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
Initializes the calendar object with the given values for the fields YEAR, MONTH, DAY_OF_MONTH, HOUR_OF_DAY, MINUTE, and SECOND. Note that you have to set the month with a constant (e.g. JANUARY), not with a number.
InitializeToNow
Initializes the calendar object with the current date and time.
InitializeWith (TimeInMillisAsLong)
Initializes the calendar object with the given time in milliseconds.
IsInitializedAsBoolean
IsLeapYear (YearAsInt) AsBoolean
Returns whether the given year is a leap year.
IsSet (FieldAsInt) AsBoolean
Determines if the given calendar field has a value set, including cases that the value has been set by internal fields calculations.
JANUARYAsInt
JULYAsInt
JUNEAsInt
LOCALE_CHINESEAsjava.util.Locale
LOCALE_ENGLISHAsjava.util.Locale
LOCALE_FRENCHAsjava.util.Locale
LOCALE_GERMANAsjava.util.Locale
LOCALE_ITALIANAsjava.util.Locale
MARCHAsInt
MAYAsInt
MILLISECONDAsInt
MinimalDaysInFirstWeekAsInt
Gets or sets what the minimal days required in the first week of the year are.
MINUTEAsInt
MONDAYAsInt
MONTHAsInt
NOVEMBERAsInt
OCTOBERAsInt
ResetTime
Sets to 0 the value of all time fields (HOUR_OF_DAY, MINUTE, SECOND, MILLISECOND).
Roll (FieldAsInt, AmountAsInt)
Adds a signed amount to the specified calendar field without changing larger fields. A negative roll amount means to subtract from field without changing larger fields.
SATURDAYAsInt
SECONDAsInt
SEPTEMBERAsInt
Set (FieldAsInt, ValueAsInt)
Sets the specified calendar field to the given value.
Sets the date of this calendar with the given date specifiers - week year, week of year, and day of week.
SetYMD (YearAsInt, MonthAsInt, DayAsInt)
Sets the values for the calendar fields YEAR, MONTH, and DAY_OF_MONTH. Previous values of other calendar fields are retained. If this is not desired, call Clear first. Note that you have to set the month with a constant (e.g. JANUARY), not with a number.
Sets the values for the fields YEAR, MONTH, DAY_OF_MONTH, HOUR_OF_DAY, MINUTE, and SECOND. Previous values of other calendar fields are retained. If this is not desired, call Clear first. Note that you have to set the month with a constant (e.g. JANUARY), not with a number.
SUNDAYAsInt
THURSDAYAsInt
TimeInMillisAsLong
Gets or sets this calendar's time value in milliseconds.
TimeZoneAsTimeZone
Gets or sets the time zone.
toStringAsString
Returns a string representation of this calendar. This function is intended to be used only for debugging purposes.
TUESDAYAsInt
WEDNESDAYAsInt
WEEK_OF_MONTHAsInt
WEEK_OF_YEARAsInt
WeeksInWeekYearAsInt [read only]
Returns the number of weeks in the week year represented by this calendar.
WeekYearAsInt [read only]
Returns the week year represented by this calendar. The week year is in sync with the week cycle. The first day of the first week is the first day of the week year.
Returns the amount of time in milliseconds to be added to local standard time to get local wall clock time.
IDAsString
Gets or sets the ID of this time zone.
Initialize
Creates a time zone with the default values for this host.
IsInitializedAsBoolean
Offset (DateAsLong) AsInt
Returns the offset in milliseconds of this time zone from UTC at the specified date. If Daylight Saving Time is in effect at the specified date, the offset value is adjusted with the amount of daylight saving. Date: The date represented in milliseconds since January 1, 1970 00:00:00 GMT.
RawOffsetAsInt [read only]
Gets the GMT offset in milliseconds for this time zone.
UseDaylightTimeAsBoolean
Queries if this time zone uses daylight saving time.
Top