PHP Class IMP_Message_Date, horde

Author: Michael Slusarz ([email protected])
Afficher le fichier Open project: horde/horde Class Usage Examples

Méthodes publiques

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

Private Methods

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

Method Details

__construct() public méthode

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

__toString() public méthode

public __toString ( )

format() public méthode

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.
Résultat string The formatted date string.