Class: OraDate
- Inherits:
-
Object
- Object
- OraDate
- Defined in:
- lib/oradate_patch.rb
Instance Method Summary collapse
-
#to_datetime ⇒ Object
RSI: create DateTime in local timezone.
Instance Method Details
#to_datetime ⇒ Object
RSI: create DateTime in local timezone
4 5 6 7 8 |
# File 'lib/oradate_patch.rb', line 4 def to_datetime DateTime.parse(Time.local(year, month, day, hour, minute, second).iso8601) rescue DateTime.new(year, month, day, hour, minute, second) end |