ILIAS
eassessment Revision 61809
|
Public Member Functions | |
ilBMFType_dateTime ($date=-1) | |
Constructor. | |
toSOAP ($date=NULL) | |
Alias of ilBMFType_dateTime::toUTC. | |
toString ($timestamp=0) | |
Converts this object or a timestamp to an ISO 8601 date/time string. | |
_split ($datestr) | |
Splits a date/time into its components. | |
toUTC ($datestr=null) | |
Returns an ISO 8601 formatted UTC date/time string. | |
toUnixtime ($datestr=null) | |
Returns a unix timestamp. | |
compare ($date1, $date2=null) | |
Compares two dates or this object with a second date. |
Data Fields | |
$ereg_iso8601 = '(-?[0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(\.[0-9]*)?(Z|[+\-][0-9]{4}|[+\-][0-9]{2}:[0-9]{2})?' | |
$timestamp = -1 |
Definition at line 33 of file class.ilBMFType_dateTime.php.
ilBMFType_dateTime::_split | ( | $datestr | ) |
Splits a date/time into its components.
string | integer | $datestr | A unix timestamp or ISO 8601 date/time string. If empty, this object is used. |
Definition at line 166 of file class.ilBMFType_dateTime.php.
References toString().
Referenced by toUnixtime(), and toUTC().
ilBMFType_dateTime::compare | ( | $date1, | |
$date2 = null |
|||
) |
Compares two dates or this object with a second date.
string | integer | $date1 | A unix timestamp or ISO 8601 date/time string. |
string | integer | $date2 | A unix timestamp or ISO 8601 date/time string. If empty, this object is used. |
Definition at line 257 of file class.ilBMFType_dateTime.php.
References $timestamp, and toUnixtime().
ilBMFType_dateTime::ilBMFType_dateTime | ( | $date = -1 | ) |
Constructor.
string | integer | $date | The timestamp or ISO 8601 formatted date and time this object is going to represent. |
Definition at line 64 of file class.ilBMFType_dateTime.php.
References toUnixtime().
ilBMFType_dateTime::toSOAP | ( | $date = NULL | ) |
Alias of ilBMFType_dateTime::toUTC.
Definition at line 78 of file class.ilBMFType_dateTime.php.
References toUTC().
ilBMFType_dateTime::toString | ( | $timestamp = 0 | ) |
Converts this object or a timestamp to an ISO 8601 date/time string.
integer | $timestamp | A unix timestamp |
Definition at line 90 of file class.ilBMFType_dateTime.php.
References $timestamp.
Referenced by _split().
ilBMFType_dateTime::toUnixtime | ( | $datestr = null | ) |
Returns a unix timestamp.
string | integer | $datestr |
Definition at line 230 of file class.ilBMFType_dateTime.php.
References _split().
Referenced by compare(), and ilBMFType_dateTime().
ilBMFType_dateTime::toUTC | ( | $datestr = null | ) |
Returns an ISO 8601 formatted UTC date/time string.
string | integer | $datestr |
Definition at line 206 of file class.ilBMFType_dateTime.php.
References _split().
Referenced by toSOAP().
ilBMFType_dateTime::$ereg_iso8601 = '(-?[0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(\.[0-9]*)?(Z|[+\-][0-9]{4}|[+\-][0-9]{2}:[0-9]{2})?' |
Definition at line 53 of file class.ilBMFType_dateTime.php.
ilBMFType_dateTime::$timestamp = -1 |
Definition at line 55 of file class.ilBMFType_dateTime.php.
Referenced by compare(), and toString().