App::Dochazka::REST::Util::Schedule - schedule-related utilities
Schedule-related utilities
use App::Dochazka::REST::Util::Schedule; ...
Given a canonical date and a schedule entry (hash with keys "dow_low", etc.) return a tsrange string for that entry
Missing function in Date::Calc
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.
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.
To install App::Dochazka::REST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Dochazka::REST
CPAN shell
perl -MCPAN -e shell install App::Dochazka::REST
For more information on module installation, please visit the detailed CPAN module installation guide.