Class: String

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

Instance Method Summary collapse

Instance Method Details

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



129
130
131
# File 'lib/zones.rb', line 129

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

#to_dayObject



125
126
127
# File 'lib/zones.rb', line 125

def to_day
  Date.to_day(self)
end

#to_tz(*args) ⇒ Object



133
134
135
# File 'lib/zones.rb', line 133

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

#to_tz!(*args) ⇒ Object



137
138
139
# File 'lib/zones.rb', line 137

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