|
static | fromXapiTimestamp ($xapiTimestamp) |
|
static | fromIliasDateTime (ilDateTime $dateTime) |
|
static | dateIntervalToISO860Duration (\DateInterval $d) |
|
static | _before (ilDateTime $start, ilDateTime $end, $a_compare_field='', $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, $a_compare_field='', $a_tz='') |
| Check if two date are equal. More...
|
|
static | _after (ilDateTime $start, ilDateTime $end, $a_compare_field='', $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, $a_compare_field='', $a_tz='') |
| Check whether an date is within a date duration given by start and end. More...
|
|
Definition at line 15 of file class.ilCmiXapiDateTime.php.
◆ dateIntervalToISO860Duration()
static ilCmiXapiDateTime::dateIntervalToISO860Duration |
( |
\DateInterval |
$d | ) |
|
|
static |
Definition at line 62 of file class.ilCmiXapiDateTime.php.
Referenced by ilCmiXapiLaunchGUI\CMI5preLaunch().
66 $duration .=
"{$d->y}Y";
69 $duration .=
"{$d->m}M";
72 $duration .=
"{$d->d}D";
74 if (!empty(
$d->h) || !empty(
$d->i) || !empty(
$d->s)) {
77 $duration .=
"{$d->h}H";
80 $duration .=
"{$d->i}M";
83 $duration .=
"{$d->s}S";
104 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 |
( |
|
$xapiTimestamp | ) |
|
|
static |
◆ toXapiTimestamp()
ilCmiXapiDateTime::toXapiTimestamp |
( |
| ) |
|
- Returns
- string
- Exceptions
-
Definition at line 27 of file class.ilCmiXapiDateTime.php.
References IL_CAL_UNIX.
29 $phpDateTime =
new DateTime();
30 $phpDateTime->setTimestamp($this->
get(
IL_CAL_UNIX));
32 return $phpDateTime->format(self::RFC3336_EXTENDED_FIXED_USING_u_INSTEAD_OF_v);
◆ 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: