Inheritance diagram for UCalendar:
Types of UCalendar interpret a UDate according to the rules of a specific calendar system. UCalendar supports Traditional & Gregorian.
A UCalendar object can produce all the time field values needed to implement the date-time formatting for a particular language and calendar style (for example, Japanese-Gregorian, Japanese-Traditional).
When computing a UDate from time fields, two special circumstances may arise: there may be insufficient information to compute the UDate (such as only year and month but no day in the month), or there may be inconsistent information (such as "Tuesday, July 15, 1996" -- July 15, 1996 is actually a Monday).
Insufficient information. The calendar will use default information to specify the missing fields. This may vary by calendar; for the Gregorian calendar, the default for a field is the same as that of the start of the epoch: i.e., Year = 1970, Month = January, Date = 1, etc.
Inconsistent information. If fields conflict, the calendar will give preference to fields set more recently. For example, when determining the day, the calendar will look for one of the following combinations of fields. The most recent combination, as determined by the most recently set single field, will be used.
See http://oss.software.ibm.com/icu/apiref/udat_8h.html for full details.
Definition at line 128 of file UCalendar.d.
|
Definition at line 132 of file UCalendar.d. Referenced by getMillis(), getNow(), and setMillis(). |
|
Use this for the primary argument-type to most ICU functions |
|
Definition at line 135 of file UCalendar.d. |
|
Definition at line 142 of file UCalendar.d. |
|
Definition at line 171 of file UCalendar.d. |
|
Definition at line 183 of file UCalendar.d. |
|
Definition at line 201 of file UCalendar.d. |
|
Definition at line 208 of file UCalendar.d. |
|
Definition at line 217 of file UCalendar.d. |
|
Definition at line 228 of file UCalendar.d. |
|
ICU error codes (the ones which are referenced) |
|
Close this UCalendar Definition at line 267 of file UCalendar.d. |
|
Open a UCalendar. A UCalendar may be used to convert a millisecond value to a year, month, and day Definition at line 242 of file UCalendar.d. References ICU::testError(). |
|
Internal only: Open a UCalendar with the given handle Definition at line 256 of file UCalendar.d. |
|
Set the TimeZone used by a UCalendar Definition at line 278 of file UCalendar.d. References ICU::testError(). |
|
Get display name of the TimeZone used by this UCalendar Definition at line 292 of file UCalendar.d. References UString::format(), and ICU::toString(). |
|
Determine if a UCalendar is currently in daylight savings time Definition at line 309 of file UCalendar.d. References ICU::testError(). |
|
Get the current date and time Definition at line 324 of file UCalendar.d. References UDate. |
|
Get a UCalendar's current time in millis. The time is represented as milliseconds from the epoch Definition at line 336 of file UCalendar.d. References ICU::testError(), and UDate. Referenced by isAfter(), isBefore(), and isEqual(). |
|
Set a UCalendar's current time in millis. The time is represented as milliseconds from the epoch Definition at line 351 of file UCalendar.d. References date, ICU::testError(), and UDate. |
|
Set a UCalendar's current date Definition at line 365 of file UCalendar.d. References date, and ICU::testError(). |
|
Set a UCalendar's current date Definition at line 379 of file UCalendar.d. References date, and ICU::testError(). |
|
Returns TRUE if the given Calendar object is equivalent to this one Definition at line 394 of file UCalendar.d. References handle. |
|
Compares the Calendar time Definition at line 405 of file UCalendar.d. References getMillis(). |
|
Returns true if this Calendar's current time is before "when"'s current time Definition at line 417 of file UCalendar.d. References getMillis(). |
|
Returns true if this Calendar's current time is after "when"'s current time Definition at line 429 of file UCalendar.d. References getMillis(). |
|
Add a specified signed amount to a particular field in a UCalendar Definition at line 441 of file UCalendar.d. References ICU::testError(). |
|
Add a specified signed amount to a particular field in a UCalendar Definition at line 456 of file UCalendar.d. References ICU::testError(). |
|
Get the current value of a field from a UCalendar Definition at line 470 of file UCalendar.d. References ICU::testError(). |
|
Set the value of a field in a UCalendar Definition at line 485 of file UCalendar.d. |
|
Determine if a field in a UCalendar is set Definition at line 496 of file UCalendar.d. |
|
Clear a field in a UCalendar Definition at line 507 of file UCalendar.d. |
|
Clear all fields in a UCalendar Definition at line 518 of file UCalendar.d. |
|
Determine a limit for a field in a UCalendar. A limit is a maximum or minimum value for a field Definition at line 530 of file UCalendar.d. References ICU::testError(). |
|
Definition at line 543 of file UCalendar.d. |
|
Definition at line 552 of file UCalendar.d. |
|
Definition at line 561 of file UCalendar.d. |
|
Definition at line 570 of file UCalendar.d. |
|
Definition at line 671 of file UCalendar.d. Referenced by UCalendar::VersionWin32::this(). |
|
Definition at line 127 of file ICU.d. Referenced by UConverter::detectSignature(), UString::format(), and UConverter::this(). |
|
|
Definition at line 155 of file ICU.d. Referenced by UConverter::compareNames(), UResourceBundle::getResource(), UResourceBundle::getString(), getTimeZoneName(), UMessageFormat::setLocale(), UResourceBundle::this(), UMessageFormat::this(), UDateFormat::this(), UText::toLower(), ICU::toString(), and UText::toUpper(). |
|
Definition at line 175 of file ICU.d. References ICU::toString(). |
|
Definition at line 184 of file ICU.d. References strlen(). |
|
Definition at line 193 of file ICU.d. References wcslen(). |
|
Definition at line 202 of file ICU.d. References strlen(). Referenced by UConverter::detectSignature(), UResourceBundle::getKey(), UResourceBundle::getLocale(), UMessageFormat::getLocale(), and UConverter::getName(). |
|
Definition at line 213 of file ICU.d. References wcslen(). |
|
Definition at line 130 of file UCalendar.d. Referenced by isEquivalent(), and UDateFormat::setCalendar(). |