Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/dugway/extensions/time.rb
Class Method Summary collapse
Class Method Details
.old_parse ⇒ Object
8 |
# File 'lib/dugway/extensions/time.rb', line 8 alias :old_parse :parse |
.parse(date, now = self.now) ⇒ Object
9 10 11 12 |
# File 'lib/dugway/extensions/time.rb', line 9 def parse(date, now=self.now) date = now.to_s if date =~ /today/i old_parse(date, now) end |