module Time::Format::RFC_3339
Overview
The RFC 3339 datetime format (ISO 8601 profile).
Time::Format::RFC_3339.format(Time.utc(2016, 2, 15, 4, 35, 50)) # => "2016-02-15T04:35:50Z"
Time::Format::RFC_3339.parse("2016-02-15T04:35:50Z") # => 2016-02-15 04:35:50.0 UTC
Time::Format::RFC_3339.parse("2016-02-15 04:35:50Z") # => 2016-02-15 04:35:50.0 UTC
Defined in:
cbor/to_cbor.crClass Method Summary
-
.to_cbor(value : Time, encoder : CBOR::Encoder)
Encodes the time as a properly tagged CBOR string as specified by RFC 7049 section 2.4.1.
Class Method Detail
Encodes the time as a properly tagged CBOR string as specified by RFC 7049 section 2.4.1.