[Source]
# File lib/extlib/time.rb, line 40 40: def to_datetime 41: DateTime.new(year, month, day, hour, min, sec, Rational(gmt_offset, 24 * 3600)) 42: end
Convert to ISO 8601 representation
Time.now.to_json #=> "\"2008-03-28T17:54:20-05:00\""
@return [String]
ISO 8601 compatible representation of the Time object.
@api public
# File lib/extlib/time.rb, line 14 14: def to_json(*) 15: self.xmlschema.to_json 16: end
# File lib/extlib/time.rb, line 27 27: def to_time 28: self 29: end
[Validate]