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) |
| |
static | now () |
static | makeNow () |
| |
static | makeToday () |
| |
Protected Member Functions | |
import ($string) | |
stringImport ($string) | |
Static Protected Member Functions | |
static | getFormat () |
Private Attributes | |
$hour = null | |
$minute = null | |
$second = null |
Definition at line 21 of file Timestamp.class.php.
static Timestamp::create | ( | $ | timestamp | ) | [static] |
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] |
Definition at line 43 of file Timestamp.class.php.
Referenced by LogRecord::__construct(), and OpenIdConsumer::associate().
static Timestamp::makeToday | ( | ) | [static] |
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().
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().
Timestamp::getDayStartStamp | ( | ) |
Timestamp::toISOString | ( | $ | convertToUtc = true |
) |
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().
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.