timetimeconstants
Time timeconstants for JavaScript, ex. hour, minute, second, etc.
The following are available:
yearApprox (= 365.25 days)
monthApprox (= 1/12th of a year)
week
day
hour
minute
second
ms
Usage
var timeconstants = ; var tenMilliseconds = 10 * timeconstantsms;var twoMinuteAndFiveSeconds = 2 * timeconstantsminute + 5 * timeconstantssecond;var twelveHours = 12 * timeconstantshour;var oneDay = timeconstantsday;var oneWeek = timeconstantsweek; // = 1/12th of a yeartimeconstantsmonthApprox; // = 365.25 daystimeconstantsyearApprox;