Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #4451

Category None
Changed by Dan Wells <dbw2ohnoyoudont@calvin.edu>
Changed at Mon 31 Jul 2017 12:05:13
Repository git://git.evergreen-ils.org/OpenSRF.git
Project OpenSRF
Branch master
Revision a481100ef9d5bd9eaad5a87ce29776cb07a8687c

Comments

LP#1635737 Add optional context to interval_to_seconds
Any given interval (e.g. "1 month") can be a different amount of
seconds depending on the context (i.e. "1 month" after February 1 is
March 1, but "1 month" after March 1 is April 1, yet March is longer
than February).  This affects months all the time, but also can affect
days, hours, and even seconds once you consider DST and "leap" times.

By giving an optional context to interval_to_seconds, you can find the
true number of seconds in, for example, "1 month", when starting from
"February 1" (the context).

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Mike Rylander <mrylander@gmail.com>

Changed files