|
static | fromXapiTimestamp (string $xapiTimestamp) |
|
static | fromIliasDateTime (ilDateTime $dateTime) |
|
static | dateIntervalToISO860Duration (\DateInterval $d) |
|
static | _before (ilDateTime $start, ilDateTime $end, string $a_compare_field='', string $a_tz='') |
| compare two dates and check start is before end This method does not consider tz offsets. More...
|
|
static | _equals (ilDateTime $start, ilDateTime $end, string $a_compare_field='', string $a_tz='') |
| Check if two date are equal. More...
|
|
static | _after (ilDateTime $start, ilDateTime $end, string $a_compare_field='', string $a_tz='') |
| compare two dates and check start is after end This method does not consider tz offsets. More...
|
|
static | _within (ilDateTime $dt, ilDateTime $start, ilDateTime $end, string $a_compare_field='', string $a_tz='') |
| Check whether an date is within a date duration given by start and end. More...
|
|
Definition at line 30 of file class.ilCmiXapiDateTime.php.
◆ dateIntervalToISO860Duration()
static ilCmiXapiDateTime::dateIntervalToISO860Duration |
( |
\DateInterval |
$d | ) |
|
|
static |
Definition at line 69 of file class.ilCmiXapiDateTime.php.
Referenced by ilCmiXapiLaunchGUI\CMI5preLaunch().
73 $duration .=
"{$d->y}Y";
76 $duration .=
"{$d->m}M";
79 $duration .=
"{$d->d}D";
81 if (!empty(
$d->h) || !empty(
$d->i) || !empty(
$d->s)) {
84 $duration .=
"{$d->h}H";
87 $duration .=
"{$d->i}M";
90 $duration .=
"{$d->s}S";
111 if ($duration ===
'P') {
for($i=6; $i< 13; $i++) for($i=1; $i< 13; $i++) $d
◆ fromIliasDateTime()
static ilCmiXapiDateTime::fromIliasDateTime |
( |
ilDateTime |
$dateTime | ) |
|
|
static |
◆ fromXapiTimestamp()
static ilCmiXapiDateTime::fromXapiTimestamp |
( |
string |
$xapiTimestamp | ) |
|
|
static |
◆ toXapiTimestamp()
ilCmiXapiDateTime::toXapiTimestamp |
( |
| ) |
|
◆ RFC3336_EXTENDED_FIXED_USING_u_INSTEAD_OF_v
const ilCmiXapiDateTime::RFC3336_EXTENDED_FIXED_USING_u_INSTEAD_OF_v = 'Y-m-d\TH:i:s.uP' |
The documentation for this class was generated from the following file: