Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/zones.rb

Instance Method Summary collapse

Instance Method Details

#to_dayObject



157
158
159
# File 'lib/zones.rb', line 157

def to_day
  Date.to_day(self)
end

#to_day!(fmt = "%Y-%m-%d") ⇒ Object



161
162
163
# File 'lib/zones.rb', line 161

def to_day!(fmt="%Y-%m-%d")
  to_day.strftime(fmt)
end

#to_tz(*args) ⇒ Object



149
150
151
# File 'lib/zones.rb', line 149

def to_tz(*args)
  Time.to_tz(self, *args)
end

#to_tz!(*args) ⇒ Object



153
154
155
# File 'lib/zones.rb', line 153

def to_tz!(*args)
  Time.to_tz!(self, *args)
end