Module: TZInfo::RubyCoreSupport
- Defined in:
- lib/tzinfo/ruby_core_support.rb
Overview
Methods to support different versions of Ruby.
Constant Summary collapse
- HALF_DAYS_IN_DAY =
rational_new!(1, 2)
Class Method Summary collapse
- .datetime_new!(ajd = 0, of = 0, sg = Date::ITALY) ⇒ Object
- .rational_new!(numerator, denominator = 1) ⇒ Object
Class Method Details
.datetime_new!(ajd = 0, of = 0, sg = Date::ITALY) ⇒ Object
50 51 52 |
# File 'lib/tzinfo/ruby_core_support.rb', line 50 def self.datetime_new!(ajd = 0, of = 0, sg = Date::ITALY) DateTime.new!(ajd, of, sg) end |
.rational_new!(numerator, denominator = 1) ⇒ Object
34 35 36 |
# File 'lib/tzinfo/ruby_core_support.rb', line 34 def self.rational_new!(numerator, denominator = 1) Rational.new!(numerator, denominator) end |