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. |
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. |
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. |
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. |
public static writeDateTime ( DateTime $date_time ) : string | ||
$date_time | DateTime | The PHP DateTime object. |
return | string | The Kolab format date-time string. |
public static writeUtcDateTime ( DateTime $date_time ) : string | ||
$date_time | DateTime | The PHP DateTime object. |
return | string | The Kolab format UTC date-time string. |