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 131 of file UCalendar.d.
|
Definition at line 135 of file UCalendar.d. Referenced by getMillis(), getNow(), and setMillis(). |
|
Use this for the primary argument-type to most ICU functions |
|
Definition at line 138 of file UCalendar.d. |
|
Definition at line 145 of file UCalendar.d. |
|
Definition at line 174 of file UCalendar.d. |
|
Definition at line 186 of file UCalendar.d. |
|
Definition at line 204 of file UCalendar.d. |
|
Definition at line 211 of file UCalendar.d. |
|
Definition at line 220 of file UCalendar.d. |
|
Definition at line 231 of file UCalendar.d. |
|
ICU error codes (the ones which are referenced) |
|
Close this UCalendar Definition at line 270 of file UCalendar.d. |
|
Definition at line 660 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 245 of file UCalendar.d. References ICU::testError(). |
|
Internal only: Open a UCalendar with the given handle Definition at line 259 of file UCalendar.d. |
|
Set the TimeZone used by a UCalendar Definition at line 281 of file UCalendar.d. References ICU::testError(). |
|
Get display name of the TimeZone used by this UCalendar Definition at line 295 of file UCalendar.d. References UString::format(), and ICU::toString(). |
|
Determine if a UCalendar is currently in daylight savings time Definition at line 312 of file UCalendar.d. References ICU::testError(). |
|
Get the current date and time Definition at line 327 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 339 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 354 of file UCalendar.d. References date, ICU::testError(), and UDate. |
|
Set a UCalendar's current date Definition at line 368 of file UCalendar.d. References date, and ICU::testError(). |
|
Set a UCalendar's current date Definition at line 382 of file UCalendar.d. References date, and ICU::testError(). |
|
Returns TRUE if the given Calendar object is equivalent to this one Definition at line 397 of file UCalendar.d. References handle. |
|
Compares the Calendar time Definition at line 408 of file UCalendar.d. References getMillis(). |
|
Returns true if this Calendar's current time is before "when"'s current time Definition at line 420 of file UCalendar.d. References getMillis(). |
|
Returns true if this Calendar's current time is after "when"'s current time Definition at line 432 of file UCalendar.d. References getMillis(). |
|
Add a specified signed amount to a particular field in a UCalendar Definition at line 444 of file UCalendar.d. References ICU::testError(). |
|
Add a specified signed amount to a particular field in a UCalendar Definition at line 459 of file UCalendar.d. References ICU::testError(). |
|
Get the current value of a field from a UCalendar Definition at line 473 of file UCalendar.d. References ICU::testError(). |
|
Set the value of a field in a UCalendar Definition at line 488 of file UCalendar.d. |
|
Determine if a field in a UCalendar is set Definition at line 499 of file UCalendar.d. |
|
Clear a field in a UCalendar Definition at line 510 of file UCalendar.d. |
|
Clear all fields in a UCalendar Definition at line 521 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 533 of file UCalendar.d. References ICU::testError(). |
|
Definition at line 546 of file UCalendar.d. |
|
Definition at line 555 of file UCalendar.d. |
|
Definition at line 564 of file UCalendar.d. |
|
Definition at line 573 of file UCalendar.d. |
|
Definition at line 651 of file UCalendar.d. |
|
Definition at line 158 of file ICU.d. Referenced by UConverter::detectSignature(), UString::format(), UCollator::getLocale(), and UConverter::this(). |
|
|
|
Definition at line 208 of file ICU.d. References string. |
|
Definition at line 230 of file ICU.d. References strlen(). |
|
Definition at line 239 of file ICU.d. References wcslen(). |
|
Definition at line 248 of file ICU.d. References strlen(). Referenced by UConverter::detectSignature(), UResourceBundle::getKey(), UResourceBundle::getLocale(), UMessageFormat::getLocale(), UCollator::getLocale(), UConverter::getName(), UChar::getPropertyName(), UChar::getPropertyValueName(), and UConverter::opApply(). |
|
Definition at line 259 of file ICU.d. References wcslen(). |
|
Definition at line 133 of file UCalendar.d. Referenced by isEquivalent(), and UDateFormat::setCalendar(). |
|
Bind the ICU functions from a shared library. This is complicated by the issues regarding D and DLLs on the Windows platform Definition at line 587 of file UCalendar.d. |
|
Initial value: [ {cast(void**) &ucal_open, "ucal_open"} Definition at line 622 of file UCalendar.d. |