PHP Класс Horde_Kolab_Format_Date, horde

Copyright 2004-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Автор: Stuart Binge ([email protected])
Автор: Thomas Jarosch ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
readDate ( string $date, string $timezone = null ) : DateTime Parse the provided string into a PHP DateTime object.
readDateOrDateTime ( string $date, string $timezone = null ) : DateTime Parse the provided string into a PHP DateTime object.
readDateTime ( string $date_time, string $timezone = null ) : DateTime Parse the provided string into a PHP DateTime object.
readUtcDateTime ( string $date_time ) : DateTime Parse the provided string into a PHP DateTime object.
writeDate ( DateTime $date ) : string Write the provided PHP DateTime object into a Kolab format date representation.
writeDateTime ( DateTime $date_time ) : string Write the provided PHP DateTime object into a Kolab format date-time representation.
writeUtcDateTime ( DateTime $date_time ) : string Write the provided PHP DateTime object into a Kolab format UTC date-time representation.

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

readDate() публичный статический Метод

Parse the provided string into a PHP DateTime object.
public static readDate ( string $date, string $timezone = null ) : DateTime
$date string The Kolab date value.
$timezone string The associated timezone. Deprecated.
Результат DateTime The date-time value represented as PHP DateTime object.

readDateOrDateTime() публичный статический Метод

Parse the provided string into a PHP DateTime object.
public static readDateOrDateTime ( string $date, string $timezone = null ) : DateTime
$date string The string representation of the date (& time).
$timezone string The associated timezone. Deprecated.
Результат DateTime The date-time value represented as PHP DateTime object.

readDateTime() публичный статический Метод

Parse the provided string into a PHP DateTime object.
public static readDateTime ( string $date_time, string $timezone = null ) : DateTime
$date_time string The Kolab date-time value.
$timezone string The associated timezone. Deprecated.
Результат DateTime The date-time value represented as PHP DateTime object.

readUtcDateTime() публичный статический Метод

Parse the provided string into a PHP DateTime object.
public static readUtcDateTime ( string $date_time ) : DateTime
$date_time string The Kolab date-time value.
Результат DateTime The date-time value represented as PHP DateTime object.

writeDate() публичный статический Метод

Write the provided PHP DateTime object into a Kolab format date representation.
public static writeDate ( DateTime $date ) : string
$date DateTime The PHP DateTime object.
Результат string The Kolab format UTC date string.

writeDateTime() публичный статический Метод

Write the provided PHP DateTime object into a Kolab format date-time representation.
public static writeDateTime ( DateTime $date_time ) : string
$date_time DateTime The PHP DateTime object.
Результат string The Kolab format date-time string.

writeUtcDateTime() публичный статический Метод

Write the provided PHP DateTime object into a Kolab format UTC date-time representation.
public static writeUtcDateTime ( DateTime $date_time ) : string
$date_time DateTime The PHP DateTime object.
Результат string The Kolab format UTC date-time string.