Module: TimeLord::Units

Included in:
Scale
Defined in:
lib/time-lord/units.rb,
lib/time-lord/units/long.rb,
lib/time-lord/units/special.rb,
lib/time-lord/units/business.rb

Constant Summary collapse

SECOND =
1
MINUTE =
SECOND  * 60
HOUR =
MINUTE  * 60
DAY =
HOUR    * 24
WEEK =
DAY     * 7
MONTH =
WEEK    * 4
YEAR =
MONTH   * 12
FORTNIGHT =

Very long units of time

WEEK    * 2
OLYMPIAD =
YEAR    * 4
LUSTRUM =
YEAR    * 5
INDICTION =
YEAR    * 15
JUBILEE =
DECADE  * 5
EON =
1.0/0
DECADE =

Very special units of time

YEAR    * 10
CENTURY =
DECADE  * 10
MILLENNIUM =
CENTURY * 10
QUARTER =

Business units of time

MONTH   * 3