Class PhpiCalLib_DataTypes_DateTime

Description

The date-time data type.

        date-time  = date "T" time ;As specified in the date and time
                                   ;value definitions

Located in /datatypes.php (line 351)

PhpiCalLib_DataType
   |
   --PhpiCalLib_DataTypes_DateTime
Method Summary
PhpiCalLib_DataTypes_DateTime __construct ()
void FromTimeStamp (number $Time, bool $Utc)
void Parse (string $EncodedString)
string ToString ()
integer ToTimeStamp ()
Variables
Methods
Constructor __construct (line 355)
  • access: public
PhpiCalLib_DataTypes_DateTime __construct ()
FromTimeStamp (line 404)

Set the time from a unix timestamp

  • access: public
void FromTimeStamp (number $Time, bool $Utc)
  • number $Time
  • bool $Utc: true to store in utc, false to store in "floating time", TZ specified by the TZID parameter
GetDate (line 364)
  • access: public
GetTime (line 378)
  • access: public
Parse (line 420)

Extract the date-time value from the encoded string

  • access: public
void Parse (string $EncodedString)
  • string $EncodedString
SetDate (line 371)
  • access: public
void SetDate (PhpiCalLib_DataTypes_Date $Date)
SetTime (line 385)
  • access: public
void SetTime (PhpiCalLib_DataTypes_Time $Time)
ToString (line 437)

Convert to string

  • access: public
string ToString ()
ToTimeStamp (line 394)

Return the time WRT to midnight Jan 1st 1970, UTC

  • return: Seconds since January 1 1970 00:00:00 GMT
  • access: public
integer ToTimeStamp ()

Inherited Methods

Inherited From PhpiCalLib_DataType

PhpiCalLib_DataType::FromDataType()
PhpiCalLib_DataType::ToDataType()

Documentation generated on Tue, 01 Apr 2008 00:20:08 +0100 by phpDocumentor 1.4.0