Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/kin/core_ext/time.rb
Instance Method Summary collapse
-
#fuzzy ⇒ String
Fuzzy-formats the time.
Instance Method Details
#fuzzy ⇒ String
Fuzzy-formats the time. If the date is yesterday, today or tomorrow, a simpler date will be given.
14 15 16 |
# File 'lib/kin/core_ext/time.rb', line 14 def fuzzy "#{to_date.fuzzy} #{formatted(:time)}" end |