Module: Slab::DateExt::ClassMethods
- Defined in:
- lib/slab/date.rb
Instance Method Summary collapse
Instance Method Details
#epoch(name = nil) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/slab/date.rb', line 9 def epoch(name = nil) case name when :db then '1000-01-01'.to_date else Time.at(0).to_date end end |