| Log Message: |
Added timeToSec utility function which converts strings of the form
"\d+ unit" into seconds. It's pretty brainless, looking for the units
month or mon, week or wk (would anyone ever use wk?), day or dy
(similarly?), hour or hr, minute or min, and second, sec or /^s$/.
In the absence of any unit, it assumes seconds.
|