Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/worlddb/utils.rb
Class Method Summary collapse
-
.cet(str) ⇒ Object
central european time (cet) + central european summer time (cest).
-
.cst(str) ⇒ Object
central standard time (cst) - 6 hours.
-
.eet(str) ⇒ Object
eastern european time (eet) + 2 hours.
Class Method Details
.cet(str) ⇒ Object
central european time (cet) + central european summer time (cest)
6 7 8 |
# File 'lib/worlddb/utils.rb', line 6 def self.cet( str ) # central european time (cet) + central european summer time (cest) ActiveSupport::TimeZone['Vienna'].parse( str ) end |
.cst(str) ⇒ Object
central standard time (cst) - 6 hours
14 15 16 |
# File 'lib/worlddb/utils.rb', line 14 def self.cst( str ) # central standard time (cst) - 6 hours ActiveSupport::TimeZone['Mexico City'].parse( str ) end |
.eet(str) ⇒ Object
eastern european time (eet) + 2 hours
10 11 12 |
# File 'lib/worlddb/utils.rb', line 10 def self.eet( str ) # eastern european time (eet) + 2 hours ActiveSupport::TimeZone['Bucharest'].parse( str ) end |