PHP Класс IMP_Message_Date, horde

Автор: Michael Slusarz ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Horde_Imap_Client_DateTime | string $date = null ) Constructor.
__toString ( )
format ( integer $format ) : string Formats the date.

Приватные методы

Метод Описание
_buildCache ( ) Build the date cache.
_format ( string $type, integer $udate ) : string Format the date/time.

Описание методов

__construct() публичный Метод

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

__toString() публичный Метод

public __toString ( )

format() публичный Метод

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.
Результат string The formatted date string.