datetime
DateTime serialization/deserialization
dt.iso8601([n=0]) â stringdt.xmlschema([n=0]) â string Instance Public methods
json_create(object) Class Public methods Deserializes
dt.to_datetime â self Instance Public methods Returns self.
DateTime.rfc2822(string='Mon, 1 Jan -4712 00:00:00 +0000'[, start=ITALY]) â datetime Class Public methods
DateTime.new([year=-4712[, month=1[, mday=1[, hour=0[, minute=0[, second=0[, offset=0[, start=Date::ITALY]]]]]]]]) â datetime
DateTime.now([start=Date::ITALY]) â datetime Class Public methods Creates
DateTime.commercial([cwyear=-4712[, cweek=1[, cwday=1[, hour=0[, minute=0[, second=0[, offset=0[, start=Date::ITALY]]]]]]]]) â datetime
DateTime.rfc3339(string='-4712-01-01T00:00:00+00:00'[, start=ITALY]) â datetime Class Public methods
dt.to_s â string Instance Public methods Returns a string in an ISO 8601
as_json(*) Instance Public methods Returns a hash, that will be turned into
Page 2 of 3