\Horde_Kolab_Format_Date

Kolab date handling functions. Based upon Kolab.php from Stuart Binge.

Copyright 2004-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Summary

Methods
Properties
Constants
readUtcDateTime()
readDate()
readDateTime()
readDateOrDateTime()
writeUtcDateTime()
writeDateTime()
writeDate()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

readUtcDateTime()

readUtcDateTime(string  $date_time) : \DateTime

Parse the provided string into a PHP DateTime object.

Parameters

string $date_time

The Kolab date-time value.

Returns

\DateTime —

The date-time value represented as PHP DateTime object.

readDate()

readDate(string  $date, string  $timezone = null) : \DateTime

Parse the provided string into a PHP DateTime object.

Parameters

string $date

The Kolab date value.

string $timezone

The associated timezone. Deprecated.

Returns

\DateTime —

The date-time value represented as PHP DateTime object.

readDateTime()

readDateTime(string  $date_time, string  $timezone = null) : \DateTime

Parse the provided string into a PHP DateTime object.

Parameters

string $date_time

The Kolab date-time value.

string $timezone

The associated timezone. Deprecated.

Returns

\DateTime —

The date-time value represented as PHP DateTime object.

readDateOrDateTime()

readDateOrDateTime(string  $date, string  $timezone = null) : \DateTime

Parse the provided string into a PHP DateTime object.

Parameters

string $date

The string representation of the date (& time).

string $timezone

The associated timezone. Deprecated.

Returns

\DateTime —

The date-time value represented as PHP DateTime object.

writeUtcDateTime()

writeUtcDateTime(\DateTime  $date_time) : string

Write the provided PHP DateTime object into a Kolab format UTC date-time representation.

Parameters

\DateTime $date_time

The PHP DateTime object.

Returns

string —

The Kolab format UTC date-time string.

writeDateTime()

writeDateTime(\DateTime  $date_time) : string

Write the provided PHP DateTime object into a Kolab format date-time representation.

Parameters

\DateTime $date_time

The PHP DateTime object.

Returns

string —

The Kolab format date-time string.

writeDate()

writeDate(\DateTime  $date) : string

Write the provided PHP DateTime object into a Kolab format date representation.

Parameters

\DateTime $date

The PHP DateTime object.

Returns

string —

The Kolab format UTC date string.