Module: FeCoreExt::CoreExt::Time
- Included in:
- Time
- Defined in:
- lib/fe_core_ext/core_ext/time.rb
Instance Method Summary collapse
Instance Method Details
#floor(unit = :sec) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/fe_core_ext/core_ext/time.rb', line 9 def floor(unit = :sec) case unit when :sec Time.zone.local(year, month, day, hour, min, sec) else self end end |