Class Horde_Kolab_Format_Date

Description

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

$Horde: framework/Kolab_Format/lib/Horde/Kolab/Format/Date.php,v 1.2.2.5 2009/01/06 15:23:13 jan Exp $

Copyright 2004-2009 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.

Located in /Kolab_Format/lib/Horde/Kolab/Format/Date.php (line 24)


	
			
Method Summary
 integer decodeDate (string $date)
 integer decodeDateOrDateTime (string $date)
 integer decodeDateTime (string $datetime)
 string encodeDate ([ $date = false])
 string encodeDateTime ([ $datetime = false])
Methods
decodeDate (line 34)

Returns a UNIX timestamp corresponding the given date string which is in the format prescribed by the Kolab Format Specification.

  • return: The unix timestamp corresponding to $date.
integer decodeDate (string $date)
  • string $date: The string representation of the date.
decodeDateOrDateTime (line 73)

Returns a UNIX timestamp corresponding the given date or date-time string which is in either format prescribed by the Kolab Format Specification.

  • return: The unix timestamp corresponding to $date.
integer decodeDateOrDateTime (string $date)
  • string $date: The string representation of the date (& time).
decodeDateTime (line 53)

Returns a UNIX timestamp corresponding the given date-time string which is in the format prescribed by the Kolab Format Specification.

  • return: The unix timestamp corresponding to $datetime.
integer decodeDateTime (string $datetime)
  • string $datetime: The string representation of the date & time.
encodeDate (line 88)

Returns a string containing the current UTC date in the format prescribed by the Kolab Format Specification.

  • return: The current UTC date in the format 'YYYY-MM-DD'.
string encodeDate ([ $date = false])
  • $date
encodeDateTime (line 105)

Returns a string containing the current UTC date and time in the format prescribed by the Kolab Format Specification.

  • return: The current UTC date and time in the format 'YYYY-MM-DDThh:mm:ssZ', where the T and Z are literal characters.
string encodeDateTime ([ $datetime = false])
  • $datetime

Documentation generated on Sun, 30 Jan 2011 05:16:37 +0000 by phpDocumentor 1.4.3