Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/length_of_time/numeric.rb

Overview

Monkey patching is bad but we do it anyway

Constant Summary collapse

TIME =
{
  milliseconds: 1.0 / 1000,
  seconds:      1.0,
  minutes:      60.0,
  hours:        3_600.0,
  days:         86_400.0,
  weeks:        604_800.0,
  fortnights:   1_209_600.0
}.freeze