3 declare(strict_types=1);
41 $phpDateTime->setTimestamp((
int) $this->
get(
IL_CAL_UNIX));
43 return $phpDateTime->format(self::RFC3336_EXTENDED_FIXED_USING_u_INSTEAD_OF_v);
51 $phpDateTime = DateTime::createFromFormat(
52 self::RFC3336_EXTENDED_FIXED_USING_u_INSTEAD_OF_v,
56 $unixTimestamp = $phpDateTime->getTimestamp();
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') {
get(int $a_format, string $a_format_str='', string $a_tz='')
get formatted date
const RFC3336_EXTENDED_FIXED_USING_u_INSTEAD_OF_v
static fromXapiTimestamp(string $xapiTimestamp)
static fromIliasDateTime(ilDateTime $dateTime)
static dateIntervalToISO860Duration(\DateInterval $d)
for($i=6; $i< 13; $i++) for($i=1; $i< 13; $i++) $d