Sha256: 774de900353f57c44d9083389b5671b5a5699bf9363861d5f3efa4b7127e1aac

Contents?: true

Size: 476 Bytes

Versions: 26

Compression:

Stored size: 476 Bytes

Contents

### some utils

class Time
  
  def self.cet( str )   # central european time (cet) + central european summer time (cest)  
    ActiveSupport::TimeZone['Vienna'].parse( str )
  end

  def self.eet( str )  # eastern european time (eet)  + 2 hours
    ActiveSupport::TimeZone['Bucharest'].parse( str )
  end
  
  def self.cst( str )  # central standard time (cst) - 6 hours 
    ActiveSupport::TimeZone['Mexico City'].parse( str )
  end
  
end # class Time

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
sportdb-0.3.3 lib/sportdb/utils.rb
sportdb-0.3.2 lib/sportdb/utils.rb
sportdb-0.3.1 lib/sportdb/utils.rb
sportdb-0.3.0 lib/sportdb/utils.rb
sportdb-0.2.0 lib/sportdb/utils.rb
sportdb-0.1.0 lib/sportdb/utils.rb