|
ILIAS
eassessment Revision 61809
|
Collaboration diagram for ilBMFType_dateTime: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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:| ilBMFType_dateTime::toSOAP | ( | $date = NULL | ) |
Alias of ilBMFType_dateTime::toUTC.
Definition at line 78 of file class.ilBMFType_dateTime.php.
References toUTC().
Here is the call graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().