|
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 |
◆ fromIliasDateTime()
static ilCmiXapiDateTime::fromIliasDateTime |
( |
ilDateTime |
$dateTime | ) |
|
|
static |
◆ fromXapiTimestamp()
static ilCmiXapiDateTime::fromXapiTimestamp |
( |
string |
$xapiTimestamp | ) |
|
|
static |
◆ toXapiTimestamp()
ilCmiXapiDateTime::toXapiTimestamp |
( |
| ) |
|
Definition at line 38 of file class.ilCmiXapiDateTime.php.
38 : string
39 {
40 $phpDateTime = new DateTime();
41 $phpDateTime->setTimestamp((
int) $this->
get(
IL_CAL_UNIX));
42
43 return $phpDateTime->format(self::RFC3336_EXTENDED_FIXED_USING_u_INSTEAD_OF_v);
44 }
References IL_CAL_UNIX.
◆ 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: