Timestamp Class Reference
[Widely used base classes and interfaces]

Date and time container and utilities. More...

Inheritance diagram for Timestamp:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 toTime ($timeDelimiter= ':', $secondDelimiter= '.')
 toDateTime ($dateDelimiter= '-', $timeDelimiter= ':', $secondDelimiter= '.')
 getHour ()
 getMinute ()
 getSecond ()
 equals (Timestamp $timestamp)
 getDayStartStamp ()
 toISOString ($convertToUtc=true)
 ISO 8601 time string.

Static Public Member Functions

static create ($timestamp)
 
Returns:
Timestamp

static now ()
static makeNow ()
 
Returns:
Timestamp

static makeToday ()
 
Returns:
Timestamp


Protected Member Functions

 import ($string)
 stringImport ($string)

Static Protected Member Functions

static getFormat ()

Private Attributes

 $hour = null
 $minute = null
 $second = null


Detailed Description

Date and time container and utilities.

See also:
Date
Examples:

cacheSettings.php.

Definition at line 21 of file Timestamp.class.php.


Member Function Documentation

static Timestamp::create ( timestamp  )  [static]

Returns:
Timestamp

Reimplemented from Date.

Definition at line 30 of file Timestamp.class.php.

Referenced by RssItemWorker::makeItems(), and AtomItemWorker::makeItems().

static Timestamp::now (  )  [static]

Definition at line 35 of file Timestamp.class.php.

static Timestamp::makeNow (  )  [static]

Returns:
Timestamp

Definition at line 43 of file Timestamp.class.php.

Referenced by LogRecord::__construct(), and OpenIdConsumer::associate().

static Timestamp::makeToday (  )  [static]

Returns:
Timestamp

Reimplemented from Date.

Definition at line 51 of file Timestamp.class.php.

Referenced by RussianTextUtils::getDateAsText().

Timestamp::toTime ( timeDelimiter = ':',
secondDelimiter = '.' 
)

Definition at line 56 of file Timestamp.class.php.

Timestamp::toDateTime ( dateDelimiter = '-',
timeDelimiter = ':',
secondDelimiter = '.' 
)

Definition at line 66 of file Timestamp.class.php.

References Date::toDate().

Referenced by equals().

Here is the call graph for this function:

Timestamp::getHour (  ) 

Definition at line 77 of file Timestamp.class.php.

Timestamp::getMinute (  ) 

Definition at line 82 of file Timestamp.class.php.

Timestamp::getSecond (  ) 

Definition at line 87 of file Timestamp.class.php.

Timestamp::equals ( Timestamp timestamp  ) 

Definition at line 92 of file Timestamp.class.php.

References toDateTime().

Here is the call graph for this function:

Timestamp::getDayStartStamp (  ) 

Reimplemented from Date.

Definition at line 97 of file Timestamp.class.php.

Timestamp::toISOString ( convertToUtc = true  ) 

ISO 8601 time string.

Definition at line 108 of file Timestamp.class.php.

static Timestamp::getFormat (  )  [static, protected]

Reimplemented from Date.

Definition at line 116 of file Timestamp.class.php.

Referenced by stringImport().

Timestamp::import ( string  )  [protected]

Reimplemented from Date.

Definition at line 121 of file Timestamp.class.php.

References Date::$string.

Timestamp::stringImport ( string  )  [protected]

Reimplemented from Date.

Definition at line 144 of file Timestamp.class.php.

References Date::$string, and getFormat().

Here is the call graph for this function:


Member Data Documentation

Timestamp::$hour = null [private]

Definition at line 23 of file Timestamp.class.php.

Timestamp::$minute = null [private]

Definition at line 24 of file Timestamp.class.php.

Timestamp::$second = null [private]

Definition at line 25 of file Timestamp.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:36 2007 for onPHP by  doxygen 1.5.4