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 | |
static | this () |
static | ~this () |
Static Public Attributes | |
static 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 | |
static bool | isError (Error e) |
static void | testError (Error e, char[] msg) |
static char * | toString (char[] string) |
static wchar * | toString (wchar[] string) |
static uint | length (char *s) |
static uint | length (wchar *s) |
static char[] | toArray (char *s) |
static wchar[] | toArray (wchar *s) |
Private Attributes | |
Handle | handle |
Static Private Attributes | |
static 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. |
|
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. References handle. |
|
Definition at line 414 of file UDateFormat.d. References library. |
|
Open a new UDateFormat for formatting and parsing dates and time. Definition at line 180 of file UDateFormat.d. References handle, ICU::testError(), and ICU::toString(). |
|
Format a date using an UDateFormat Definition at line 205 of file UDateFormat.d. References UString::format(), and handle. |
|
Parse a string into an date/time using a UDateFormat Definition at line 221 of file UDateFormat.d. References UText::content, handle, 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, and handle. |
|
Get the UCalendar associated with this UDateFormat Definition at line 249 of file UDateFormat.d. |
|
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, and handle. |
|
Get the year relative to which all 2-digit years are interpreted Definition at line 275 of file UDateFormat.d. References handle, and ICU::testError(). |
|
Set the year relative to which all 2-digit years are interpreted Definition at line 291 of file UDateFormat.d. References handle, and ICU::testError(). |
|
Extract the pattern from a UDateFormat Definition at line 305 of file UDateFormat.d. References UString::format(), and handle. |
|
Set the pattern for a UDateFormat Definition at line 321 of file UDateFormat.d. References UText::get(), handle, and UText::length(). |
|
Specify whether an UDateFormat will perform lenient parsing. Definition at line 332 of file UDateFormat.d. References handle. |
|
Determine if an UDateFormat will perform lenient parsing. Definition at line 343 of file UDateFormat.d. References handle. |
|
Definition at line 405 of file UDateFormat.d. |
|
Definition at line 156 of file ICU.d. Referenced by UCollator::getLocale(). |
|
|
|
|
|
Definition at line 228 of file ICU.d. References strlen(). Referenced by UConverter::UTranscoder::convert(). |
|
Definition at line 237 of file ICU.d. References wcslen(). |
|
Definition at line 246 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 257 of file ICU.d. References wcslen(). |
|
Definition at line 115 of file UDateFormat.d. Referenced by format(), getCalendar(), getPattern(), getTwoDigitYearStart(), isLenient(), parse(), setCalendar(), setLenient(), setNumberFormat(), setPattern(), setTwoDigitYearStart(), this(), and ~this(). |
|
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. Referenced by this(). |