DateTimeLocale

How to format locale-specific date/time output

Members

Functions

abbreviatedDayName
const(char)[] abbreviatedDayName(Calendar.DayOfWeek dayOfWeek)

Return a short day name

abbreviatedMonthName
const(char)[] abbreviatedMonthName(int month)

Return a short month name

dayName
const(char)[] dayName(Calendar.DayOfWeek dayOfWeek)

Return a long day name

format
char[] format(char[] output, Time dateTime, const(char)[] layout)

Format the given Time value into the provided output, using the specified layout. The layout can be a generic variant or a custom one, where generics are indicated via a single character:

formatWide
T[] formatWide(T[] output, Time dateTime, const(T)[] fmt)
monthName
const(char)[] monthName(int month)

Return a long month name

Properties

calendar
Calendar calendar [@property getter]

Return the assigned Calendar instance, using Gregorian as the default

generic
DateTimeLocale* generic [@property getter]

Return a generic English/US instance

Static functions

create
DateTimeLocale create()

create and populate an instance via O/S configuration for the current user

create
DateTimeLocale create()

create and populate an instance via O/S configuration for the current user

Static variables

rfc1123Pattern
immutable(char)[] rfc1123Pattern;
Undocumented in source.
sortableDateTimePattern
immutable(char)[] sortableDateTimePattern;
Undocumented in source.
universalSortableDateTimePattern
immutable(char)[] universalSortableDateTimePattern;
abbreviatedDayNames
const(char)[][] abbreviatedDayNames;
abbreviatedMonthNames
const(char)[][] abbreviatedMonthNames;
Undocumented in source.

Variables

amDesignator
const(char)[] amDesignator;
Undocumented in source.
assignedCalendar
Calendar assignedCalendar;
dateSeparator
const(char)[] dateSeparator;
Undocumented in source.
dayNames
const(char)[][] dayNames;
fullDateTimePattern
const(char)[] fullDateTimePattern;
generalLongTimePattern
const(char)[] generalLongTimePattern;
generalShortTimePattern
const(char)[] generalShortTimePattern;
longDatePattern
const(char)[] longDatePattern;
longTimePattern
const(char)[] longTimePattern;
monthDayPattern
const(char)[] monthDayPattern;
monthNames
const(char)[][] monthNames;
pmDesignator
const(char)[] pmDesignator;
Undocumented in source.
shortDatePattern
const(char)[] shortDatePattern;
shortTimePattern
const(char)[] shortTimePattern;
Undocumented in source.
timeSeparator
const(char)[] timeSeparator;
yearMonthPattern
const(char)[] yearMonthPattern;
Undocumented in source.

Meta