Method: TimeMath.year

Defined in:
lib/time_math.rb

.yearUnits::Base

Shortcut to get year unit.

Returns:



75
76
77
# File 'lib/time_math.rb', line 75

Units.names.each do |unit|
  define_singleton_method(unit) { Units.get(unit) }
end