Class CFDate

Description

Date Type of CFPropertyList

Note: CFDate uses Unix timestamp (epoch) to store dates internally

Located in /CFType.php (line 164)

CFType
   |
   --CFDate
Class Constant Summary
Method Summary
static integer dateValue (string $val)
CFDate __construct (integer $value, [integer $format = CFDate::TIMESTAMP_UNIX])
integer getValue ([integer $format = CFDate::TIMESTAMP_UNIX])
void setValue (integer $value, [integer $format = CFDate::TIMESTAMP_UNIX])
The toBinary (CFBinaryPropertyList &$bplist)
DOMNode toXML ( $doc, [string $nodeName = ""])
Variables

Inherited Variables

Inherited from CFType

CFType::$value
Methods
static method dateValue (line 234)

Create a UNIX timestamp from a PList date string

  • return: The UNIX timestamp
  • throws: PListException when encountering an unknown date string format
  • access: public
static integer dateValue (string $val)
  • string $val: The date string (e.g. "2009-05-13T20:23:43Z")
Constructor __construct (line 175)

Create new Date CFType.

CFDate __construct (integer $value, [integer $format = CFDate::TIMESTAMP_UNIX])

Redefinition of:
CFType::__construct()
Create new CFType.
getValue (line 201)

Get the Date CFType's value.

integer getValue ([integer $format = CFDate::TIMESTAMP_UNIX])

Redefinition of:
CFType::getValue()
Get the CFType's value
setValue (line 188)

Set the Date CFType's value.

void setValue (integer $value, [integer $format = CFDate::TIMESTAMP_UNIX])

Redefinition of:
CFType::setValue()
Set the CFType's value
toBinary (line 224)

convert value to binary representation

  • return: offset in the object table
  • access: public
The toBinary (CFBinaryPropertyList &$bplist)

Redefinition of:
CFType::toBinary()
convert value to binary representation
toXML (line 212)

Get XML-Node.

  • return: <date>-Element
  • access: public
DOMNode toXML ( $doc, [string $nodeName = ""])
  • DOMDocument $doc: DOMDocument to create DOMNode in
  • string $nodeName: For compatibility reasons; just ignore it

Redefinition of:
CFType::toXML()
Get XML-Node.

Inherited Methods

Inherited From CFType

CFType::__construct()
CFType::getValue()
CFType::setValue()
CFType::toArray()
CFType::toBinary()
CFType::toXML()
Class Constants
DATE_DIFF_APPLE_UNIX = 978307200 (line 167)
TIMESTAMP_APPLE = 0 (line 165)
TIMESTAMP_UNIX = 1 (line 166)

Documentation generated on Fri, 01 Jan 2010 21:33:34 +0100 by phpDocumentor 1.4.1