module

Time::Format::ISO_8601_TIME

The ISO 8601 time format.

Time::Format::ISO_8601_TIME.format(Time.utc(2016, 2, 15, 4, 35, 50)) # => "04:35:50Z"
Time::Format::ISO_8601_TIME.parse("04:35:50Z")                       # => 0001-01-01 04:35:50Z

Class methods

format(time : Time, io : IO)

Formats a Time into the given io.

Source
format(time : Time)

Formats a Time into a String.

Source
parse(string, location : Time::Location | Nil = Time::Location::UTC) : Time

Parses a string into a Time.

Source