Inheritance diagram for UDateFormat:
Public Types | |
typedef UCalendar UDate | UDate |
typedef void * | UFieldPos |
enum | Style { Full, Long, Medium, Short, Default = Medium, None = -1, Ignore = -2 } |
enum | Field { EraField = 0, YearField = 1, MonthField = 2, DateField = 3, HourOfDay1Field = 4, HourOfDay0Field = 5, MinuteField = 6, SecondField = 7, FractionalSecondField = 8, DayOfWeekField = 9, DayOfYearField = 10, DayOfWeekInMonthField = 11, WeekOfYearField = 12, WeekOfMonthField = 13, AmPmField = 14, Hour1Field = 15, Hour0Field = 16, TimezoneField = 17, YearWoyField = 18, DowLocalField = 19, ExtendedYearField = 20, JulianDayField = 21, MillisecondsInDayField = 22, TimezoneRfcField = 23, FieldCount = 24 } |
Public Member Functions | |
this (Style time, Style date, inout ULocale locale, inout UTimeZone tz, UText pattern) | |
~this () | |
void | format (UString dst, UDate date, UFieldPos p=null) |
UDate | parse (UText src, uint *index=null) |
void | setCalendar (UCalendar c) |
UCalendar | getCalendar () |
void | setNumberFormat (UNumberFormat n) |
UDate | getTwoDigitYearStart () |
void | setTwoDigitYearStart (UDate start) |
void | getPattern (UString dst, bool localize) |
void | setPattern (UText pattern, bool localized) |
void | setLenient (bool yes) |
bool | isLenient () |
Static Public Member Functions | |
this () | |
~this () | |
Static Public Attributes | |
FunctionLoader Bind[] | targets |
Private Types | |
enum | Symbol { Eras, Months, ShortMonths, Weekdays, ShortWeekdays, AmPms, LocalizedChars } |
typedef void * | Handle |
enum | Error { OK, BufferOverflow = 15 } |
Static Private Member Functions | |
bool | isError (Error e) |
void | testError (Error e, char[] msg) |
char * | toString (char[] string) |
wchar * | toString (wchar[] string) |
uint | length (char *s) |
uint | length (wchar *s) |
char[] | toArray (char *s) |
wchar[] | toArray (wchar *s) |
Private Attributes | |
Handle | handle |
Static Private Attributes | |
void * | library |
UDateFormat helps you to format and parse dates for any locale. Your code can be completely independent of the locale conventions for months, days of the week, or even the calendar format: lunar vs. solar.
See this page for full details.
Definition at line 113 of file UDateFormat.d.
|
Definition at line 117 of file UDateFormat.d. |
|
Definition at line 119 of file UDateFormat.d. Referenced by format(). |
|
Use this for the primary argument-type to most ICU functions |
|
Definition at line 121 of file UDateFormat.d. |
|
Definition at line 132 of file UDateFormat.d. |
|
Definition at line 161 of file UDateFormat.d. |
|
ICU error codes (the ones which are referenced) |
|
Close a UDateFormat Definition at line 194 of file UDateFormat.d. |
|
Definition at line 414 of file UDateFormat.d. |
|
Open a new UDateFormat for formatting and parsing dates and time. Definition at line 180 of file UDateFormat.d. References date, ICU::testError(), time, and ICU::toString(). |
|
Format a date using an UDateFormat Definition at line 205 of file UDateFormat.d. References date, UString::format(), and UFieldPos. |
|
Parse a string into an date/time using a UDateFormat Definition at line 221 of file UDateFormat.d. References UText::content, UText::len, and ICU::testError(). |
|
Set the UCalendar associated with an UDateFormat. A UDateFormat uses a UCalendar to convert a raw value to, for example, the day of the week. Definition at line 238 of file UDateFormat.d. References UCalendar::handle. |
|
Get the UCalendar associated with this UDateFormat Definition at line 249 of file UDateFormat.d. References UCalendar. |
|
Set the UNumberFormat associated with an UDateFormat.A UDateFormat uses a UNumberFormat to format numbers within a date, for example the day number. Definition at line 263 of file UDateFormat.d. References UNumberFormat::handle. |
|
Get the year relative to which all 2-digit years are interpreted Definition at line 275 of file UDateFormat.d. References ICU::testError(). |
|
Set the year relative to which all 2-digit years are interpreted Definition at line 291 of file UDateFormat.d. References ICU::testError(). |
|
Extract the pattern from a UDateFormat Definition at line 305 of file UDateFormat.d. References UString::format(). |
|
Set the pattern for a UDateFormat Definition at line 321 of file UDateFormat.d. References UText::get(), and UText::length(). |
|
Specify whether an UDateFormat will perform lenient parsing. Definition at line 332 of file UDateFormat.d. |
|
Determine if an UDateFormat will perform lenient parsing. Definition at line 343 of file UDateFormat.d. |
|
Definition at line 405 of file UDateFormat.d. |
|
Definition at line 110 of file ICU.d. Referenced by UConverter::detectSignature(), UString::format(), UCollator::getLocale(), and UConverter::this(). |
|
|
|
Definition at line 160 of file ICU.d. References string. |
|
Definition at line 182 of file ICU.d. References strlen(). |
|
Definition at line 191 of file ICU.d. References wcslen(). |
|
Definition at line 200 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 211 of file ICU.d. References wcslen(). |
|
Definition at line 115 of file UDateFormat.d. |
|
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 357 of file UDateFormat.d. |
|
Initial value: [ {cast(void**) &udat_open, "udat_open"} Definition at line 384 of file UDateFormat.d. |