struct Time::Format

Overview

Specifies the format to convert a Time to and from a String.

The pattern of a format is a String with directives. Directives being with a percent (%) character. Any text not listed as a directive will be passed/parsed through the output/input string.

The directives are:

Defined in:

to_con.cr
from_con.cr

Class Method Summary

Instance Method Summary

Instance methods inherited from struct Value

==(other : CON::Any) ==

Instance methods inherited from class Object

===(other : CON::Any) ===, from_con(con : String | IO) from_con, to_con(io : IO)
to_con
to_con
, to_pretty_con(indent : String = " ")
to_pretty_con(io : IO, indent : String = " ")
to_pretty_con

Class Method Detail

def self.from_con(value, pull : CON::PullParser) #

[View source]
def self.from_con(pull : CON::PullParser) #

[View source]

Instance Method Detail

def to_con(value : Time, con : CON::Builder) #

[View source]