Class: DateTimeFormatInfo
Source Location: /I18N/core/DateTimeFormatInfo.php
Defines how DateTime values are formatted and displayed, depending on the culture.
Class Details
|
|
|
Class Variables
Class Methods
constructor __construct [line 128]
DateTimeFormatInfo __construct(
[array
$data = array()])
|
|
Initializes a new writable instance of the DateTimeFormatInfo class that is dependent on the ICU data for date time formatting information. N.B.You should not initialize this class directly unless you know what you are doing. Please use use DateTimeFormatInfo::getInstance() to create an instance.
Parameters:
method formatDateTime [line 506]
string formatDateTime(
mixed
$date, mixed
$time)
|
|
Formats the date and time in a culture sensitive paterrn. The default is "Date Time".
method getAbbreviatedDayNames [line 193]
array getAbbreviatedDayNames(
)
|
|
A one-dimensional array of type String containing the culture-specific abbreviated names of the days of the week. The array for InvariantInfo contains "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", and "Sat".
method getAbbreviatedMonthNames [line 292]
array getAbbreviatedMonthNames(
)
|
|
A one-dimensional array of type String containing the culture-specific abbreviated names of the months. The array for InvariantInfo contains "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", and "Dec".
method getAMDesignator [line 352]
string getAMDesignator(
)
|
|
The string designator for hours that are "ante meridiem" (before noon). The default for InvariantInfo is "AM".
method getAMPMMarkers [line 396]
Get the AM and PM markers array. Default InvariantInfo for AM and PM is
method getData [line 142]
Get the internal ICU data for date time formatting.
method getDateTimeOrderPattern [line 496]
string getDateTimeOrderPattern(
)
|
|
Returns the date time order pattern, "{1} {0}" (default). This is culture sensitive.
method getDayNames [line 242]
A one-dimensional array of type String containing the culture-specific full names of the days of the week. The array for InvariantInfo contains "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", and "Saturday".
method getEra [line 341]
A string containing the name of the era.
Parameters:
method getFullDatePattern [line 456]
string getFullDatePattern(
)
|
|
Returns the full date pattern "EEEE, yyyy MMMM dd" (default). This is culture sensitive.
method getFullTimePattern [line 416]
string getFullTimePattern(
)
|
|
Returns the full time pattern "HH:mm:ss z" (default). This is culture sensitive.
method getInstance [line 169]
Returns the DateTimeFormatInfo associated with the specified culture.
Parameters:
method getInvariantInfo [line 152]
Gets the default DateTimeFormatInfo that is culture-independent (invariant).
method getLongDatePattern [line 466]
string getLongDatePattern(
)
|
|
Returns the long date pattern "yyyy MMMM d" (default). This is culture sensitive.
method getLongTimePattern [line 426]
string getLongTimePattern(
)
|
|
Returns the long time pattern "HH:mm:ss z" (default). This is culture sensitive.
method getMediumDatePattern [line 476]
string getMediumDatePattern(
)
|
|
Returns the medium date pattern "yyyy MMMM d" (default). This is culture sensitive.
method getMediumTimePattern [line 436]
string getMediumTimePattern(
)
|
|
Returns the medium time pattern "HH:mm:ss" (default). This is culture sensitive.
method getMonthNames [line 318]
A one-dimensional array of type String containing the culture-specific full names of the months. The array for InvariantInfo contains "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", and "December"
method getNarrowDayNames [line 218]
array getNarrowDayNames(
)
|
|
A one-dimensional array of type String containing the culture-specific narrow names of the days of the week. The array for InvariantInfo contains "S", "M", "T", "W", "T", "F", and "S".
method getNarrowMonthNames [line 268]
array getNarrowMonthNames(
)
|
|
A one-dimensional array of type String containing the culture-specific narrow names of the months. The array for InvariantInfo contains "J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", and "D".
method getPMDesignator [line 374]
string getPMDesignator(
)
|
|
The string designator for hours that are "post meridiem" (after noon). The default for InvariantInfo is "PM".
method getShortDatePattern [line 486]
string getShortDatePattern(
)
|
|
Returns the short date pattern "yy/MM/dd" (default). This is culture sensitive.
method getShortTimePattern [line 446]
string getShortTimePattern(
)
|
|
Returns the short time pattern "HH:mm" (default). This is culture sensitive.
method setAbbreviatedDayNames [line 206]
void setAbbreviatedDayNames(
array
$value)
|
|
Set the abbreviated day names. The value should be an array of string starting with Sunday and ends in Saturady. For example, - array("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat");
Parameters:
method setAbbreviatedMonthNames [line 305]
void setAbbreviatedMonthNames(
array
$value)
|
|
Set the abbreviated month names. The value should be an array of string starting with Jan and ends in Dec. For example, - array("Jan", "Feb", "Mar", "Apr", "May", "Jun",
- "Jul", "Aug", "Sep","Oct","Nov","Dec");
Parameters:
method setAMDesignator [line 362]
void setAMDesignator(
string
$value)
|
|
Set the AM Designator. For example, 'AM'.
Parameters:
method setAMPMMarkers [line 406]
void setAMPMMarkers(
array
$value)
|
|
Set the AM and PM markers array. For example
Parameters:
method setDayNames [line 256]
void setDayNames(
array
$value)
|
|
Set the day names. The value should be an array of string starting with Sunday and ends in Saturady. For example, - array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday",
- "Friday", "Saturday".);
Parameters:
method setMonthNames [line 331]
void setMonthNames(
array
$value)
|
|
Set the month names. The value should be an array of string starting with Janurary and ends in December. For example, - array("January", "February", "March", "April", "May", "June",
- "July", "August", "September","October","November","December");
Parameters:
method setNarrowDayNames [line 230]
void setNarrowDayNames(
array
$value)
|
|
Set the narrow day names. The value should be an array of string starting with Sunday and ends in Saturady. For example, - array("S", "M", "T", "W", "T", "F", "S");
Parameters:
method setNarrowMonthNames [line 280]
void setNarrowMonthNames(
array
$value)
|
|
Set the narrow month names. The value should be an array of string starting with J and ends in D. For example, - array("J","F","M","A","M","J","J","A","S","O","N","D");
Parameters:
method setPMDesignator [line 384]
void setPMDesignator(
string
$value)
|
|
Set the PM Designator. For example, 'PM'.
Parameters:
method __get [line 97]
mixed __get(
mixed
$name)
|
|
Allow functions that begins with 'set' to be called directly as an attribute/property to retrieve the value.
method __set [line 110]
void __set(
mixed
$name, mixed
$value)
|
|
Allow functions that begins with 'set' to be called directly as an attribute/property to set the value.
|
|