public function setUntilDateTime(PhutilCalendarDateTime $datetime = null) { if ($datetime) { $value = $datetime->newAbsoluteDateTime()->toDictionary(); } else { $value = null; } return $this->setParameter('untilDateTime', $value); }
private function newDateTimeProperty($name, PhutilCalendarDateTime $value, array $parameters = array()) { $datetime = $value->getISO8601(); if ($value->getIsAllDay()) { $parameters[] = array('name' => 'VALUE', 'values' => array('DATE')); } return $this->newProperty($name, $datetime, $parameters); }