3 final class PhabricatorCalendarEventNotificationView
11 public function setViewer(PhabricatorUser
$viewer) {
12 $this->viewer
= $viewer;
16 public function getViewer() {
20 public function setEvent(PhabricatorCalendarEvent
$event) {
21 $this->event
= $event;
25 public function getEvent() {
29 public function setEpoch($epoch) {
30 $this->epoch
= $epoch;
34 public function getEpoch() {
38 public function setDateTime(PhutilCalendarDateTime
$date_time) {
39 $this->dateTime
= $date_time;
43 public function getDateTime() {
44 return $this->dateTime
;
47 public function getDisplayMinutes() {
48 $epoch = $this->getEpoch();
49 $now = PhabricatorTime
::getNow();
50 $minutes = (int)ceil(($epoch - $now) / 60);
51 return new PhutilNumber($minutes);
54 public function getDisplayTime() {
55 $viewer = $this->getViewer();
57 $epoch = $this->getEpoch();
58 return phabricator_datetime($epoch, $viewer);
61 public function getDisplayTimeWithTimezone() {
62 $viewer = $this->getViewer();
64 $epoch = $this->getEpoch();
65 return phabricator_datetimezone($epoch, $viewer);