NAME
App::Dochazka::REST::Util::Schedule - schedule-related utilities
VERSION
Version 0.463
SYNOPSIS
Schedule-related utilities
use App::Dochazka::REST::Util::Schedule;
...
EXPORTS AND PACKAGE VARIABLES
FUNCTIONS
sched_entry_to_tsrange
Given a canonical date and a schedule entry (hash with keys "dow_low", etc.) return a tsrange string for that entry
Days_to_Date
Missing function in Date::Calc
intervals_in_schedule
Given a schedule (JSON string) and a tsrange, return a status object. If the status code is OK, the payload will contain the set of scheduled work intervals that fall completely within the tsrange. Otherwise, there is some kind of error.
_init_lower_sched_hash
Given schedule hash (JSON string from database), return schedule hash keyed on the "low_dow" property. In other words, convert the schedule to hash format keyed on numeric form of "low_dow" i.e. 1 for MON, 2 for TUE, etc. The values are references to arrays containing the entries beginning on the given DOW.