Page MenuHomeClusterLabs Projects
Diviner Tech Docs CalendarTimeUtil

final class CalendarTimeUtil
Phorge Technical Documentation (Calendar)

This class is useful for generating various time objects, relative to the user and their timezone.

For now, the class exposes two sets of static methods for the two main calendar views - one for the conpherence calendar widget and one for the user profile calendar view. These have slight differences such as conpherence showing both a three day "today 'til 2 days from now" *and* a Sunday -> Saturday list, whilst the profile view shows a more simple seven day rolling list of events.

Methods

public static function getCalendarEventEpochs($user, $start_day_str, $days)

This method is not documented.
Parameters
PhabricatorUser$user
$start_day_str
$days
Return
wild

public static function getCalendarWeekTimestamps($user)

This method is not documented.
Parameters
PhabricatorUser$user
Return
wild

public static function getCalendarWidgetTimestamps($user)

This method is not documented.
Parameters
PhabricatorUser$user
Return
wild

public static function getTimestamps($user, $start_day_str, $days)

Public for testing purposes only. You should probably use one of the functions above.

Parameters
PhabricatorUser$user
$start_day_str
$days
Return
wild

private static function getStartDateTimeObjects($user, $start_day_str)

This method is not documented.
Parameters
PhabricatorUser$user
$start_day_str
Return
wild