W3cubDocs

/Crystal 0.31

module Time::Format::RFC_3339

Overview

The RFC 3339 datetime format (ISO 8601 profile).

Defined in:

time/format/custom/rfc_3339.cr

Class Method Summary

Class Method Detail

def self.format(time : Time, io : IO, fraction_digits = nil)Source

Formats a Time into the given io.

def self.format(time : Time, fraction_digits = nil)Source

Formats a Time into a String.

def self.parse(string, location = Time::Location::UTC) : TimeSource

Parses a string into a Time.

© 2012–2019 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.31.1/Time/Format/RFC_3339.html