Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/zones.rb
Instance Method Summary collapse
Instance Method Details
#as_tz(*args) ⇒ Object
139 140 141 |
# File 'lib/zones.rb', line 139 def as_tz(*args) Time.as_tz(self, *args) end |
#iso_date(fmt = "%Y-%m-%d") ⇒ Object
131 132 133 |
# File 'lib/zones.rb', line 131 def iso_date(fmt="%Y-%m-%d") to_day.strftime(fmt) end |
#to_day ⇒ Object
127 128 129 |
# File 'lib/zones.rb', line 127 def to_day Date.to_day(self) end |
#to_tz(*args) ⇒ Object
135 136 137 |
# File 'lib/zones.rb', line 135 def to_tz(*args) Time.to_tz(self, *args) end |