Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/textutils/core_ext/time.rb

Class Method Summary collapse

Class Method Details

.cet(str) ⇒ Object

central european time (cet) + central european summer time (cest)



6
7
8
# File 'lib/textutils/core_ext/time.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/textutils/core_ext/time.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/textutils/core_ext/time.rb', line 10

def self.eet( str )  # eastern european time (eet)  + 2 hours
  ActiveSupport::TimeZone['Bucharest'].parse( str )
end