Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/zenweb/extensions.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#date ⇒ Object
Format as YYYY-MM-DD.
-
#datetime ⇒ Object
Format as YYYY-MM-DD @ HH:MM.
-
#time ⇒ Object
Format as HH:MM.
- #ym ⇒ Object
Instance Method Details
#date ⇒ Object
Format as YYYY-MM-DD
43 44 45 |
# File 'lib/zenweb/extensions.rb', line 43 def date strftime "%Y-%m-%d" end |
#datetime ⇒ Object
Format as YYYY-MM-DD @ HH:MM
54 55 56 |
# File 'lib/zenweb/extensions.rb', line 54 def datetime strftime "%Y-%m-%d @ %H:%M" end |
#time ⇒ Object
Format as HH:MM
61 62 63 |
# File 'lib/zenweb/extensions.rb', line 61 def time strftime "%H:%M" end |
#ym ⇒ Object
47 48 49 |
# File 'lib/zenweb/extensions.rb', line 47 def ym strftime "%Y-%m" end |