Method | Description | |
---|---|---|
__construct ( Horde_Imap_Client_DateTime | string $date = null ) | Constructor. | |
__toString ( ) | ||
format ( integer $format ) : string | Formats the date. |
Method | Description | |
---|---|---|
_buildCache ( ) | Build the date cache. | |
_format ( string $type, integer $udate ) : string | Format the date/time. |
public __construct ( Horde_Imap_Client_DateTime | string $date = null ) | ||
$date | Horde_Imap_Client_DateTime | string | The date. |
public format ( integer $format ) : string | ||
$format | integer | Formatting options: - DATE_FORCE: Force use of date formatting, instead of time formatting, for all dates. - DATE_FULL: Use full representation of date, including time information. - DATE_ISO_8601: Return ISO 8601 formatted date. - DATE_LOCAL: Display localized formatting (with timezone information). Displays "Today" for the current date. |
return | string | The formatted date string. |