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.9.0 lib/sportdb/utils.rb
sportdb-0.8.1 lib/sportdb/utils.rb
sportdb-0.8.0 lib/sportdb/utils.rb
sportdb-0.7.2 lib/sportdb/utils.rb
sportdb-0.7.1 lib/sportdb/utils.rb
sportdb-0.7.0 lib/sportdb/utils.rb
sportdb-0.6.0 lib/sportdb/utils.rb
sportdb-0.5.6 lib/sportdb/utils.rb
sportdb-0.5.5 lib/sportdb/utils.rb
sportdb-0.5.4 lib/sportdb/utils.rb
sportdb-0.5.3 lib/sportdb/utils.rb
sportdb-0.5.2 lib/sportdb/utils.rb
sportdb-0.5.1 lib/sportdb/utils.rb
sportdb-0.5.0 lib/sportdb/utils.rb
sportdb-0.4.5 lib/sportdb/utils.rb
sportdb-0.4.4 lib/sportdb/utils.rb
sportdb-0.4.3 lib/sportdb/utils.rb
sportdb-0.4.2 lib/sportdb/utils.rb
sportdb-0.4.1 lib/sportdb/utils.rb
sportdb-0.4.0 lib/sportdb/utils.rb