26 if ($remind->
getUnits() ===
'minutes')
28 $valueType =
'DURATION';
31 $value =
'-PT' . $remind->
getTime() / 60 .
'H';
33 else if ($remind->
getTime() === 0)
35 $value =
'PT' . $remind->
getTime() .
'S';
39 $value =
'-PT' . $remind->
getTime() .
'M';
44 $valueType =
'DURATION';
49 $value =
'PT' . $parsedDiff[
'hours'] .
'H';
53 || ($remind->
getDaysBefore() === 1 && $parsedDiff[
'days'] === 0)
58 if ($parsedDiff[
'hours'])
60 $hours = $parsedDiff[
'hours'] .
'H';
62 if ($parsedDiff[
'minutes'])
64 $minutes = $parsedDiff[
'minutes'] .
'M';
66 $value =
'-PT' .
$hours . $minutes;
68 else if ($parsedDiff[
'days'] > 0)
72 $value =
'-P' . $parsedDiff[
'days'] .
'D';
73 if ($parsedDiff[
'hours'])
75 $hours = $parsedDiff[
'hours'] .
'H';
77 if ($parsedDiff[
'minutes'])
79 $minutes = $parsedDiff[
'minutes'] .
'M';
83 $value .=
'T' .
$hours . $minutes;
93 $valueType =
'DATE-TIME';
97 return [$value, $valueType];
getTimeBeforeStartInMinutes()
static prepareReminderValue(Remind $remind, bool $isFullDay)
const UTC_DATETIME_FORMAT
static minutesToDayHoursMinutes(int $minutes)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)