PHP Class 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.
Author: Stuart Binge ([email protected])
Author: Thomas Jarosch ([email protected])
Datei anzeigen Open project: horde/horde Class Usage Examples

Public Methods

Method Description
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.

Method Details

readDate() public static method

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.
return DateTime The date-time value represented as PHP DateTime object.

readDateOrDateTime() public static method

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.
return DateTime The date-time value represented as PHP DateTime object.

readDateTime() public static method

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.
return DateTime The date-time value represented as PHP DateTime object.

readUtcDateTime() public static method

Parse the provided string into a PHP DateTime object.
public static readUtcDateTime ( string $date_time ) : DateTime
$date_time string The Kolab date-time value.
return DateTime The date-time value represented as PHP DateTime object.

writeDate() public static method

Write the provided PHP DateTime object into a Kolab format date representation.
public static writeDate ( DateTime $date ) : string
$date DateTime The PHP DateTime object.
return string The Kolab format UTC date string.

writeDateTime() public static method

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.
return string The Kolab format date-time string.

writeUtcDateTime() public static method

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.
return string The Kolab format UTC date-time string.