PHP Class IMP_Message_Date, horde

Author: Michael Slusarz ([email protected])
Datei anzeigen Open project: horde/horde Class Usage Examples

Public Methods

Method Description
__construct ( Horde_Imap_Client_DateTime | string $date = null ) Constructor.
__toString ( )
format ( integer $format ) : string Formats the date.

Private Methods

Method Description
_buildCache ( ) Build the date cache.
_format ( string $type, integer $udate ) : string Format the date/time.

Method Details

__construct() public method

Constructor.
public __construct ( Horde_Imap_Client_DateTime | string $date = null )
$date Horde_Imap_Client_DateTime | string The date.

__toString() public method

public __toString ( )

format() public method

Formats 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.