struct TimeFormat
Superclass hierarchy
Object
Value
Struct
TimeFormat
Defined in:
Constant Summary
ISO_8601_DATE
=
new
(
"%F"
)
Class Method Summary
.new
(pattern : String, kind = Time::Kind::Unspecified)
Instance Method Summary
#format
(time : Time, io : IO)
#format
(time : Time)
#from_json
(pull : JSON::PullParser)
#parse
(string, kind = @kind)
#pattern
#to_json
(value : Time, io : IO)
Class Method Detail
def self.
new
(pattern :
String
, kind =
Time
::
Kind
::
Unspecified
)
Instance Method Detail
def
format
(time :
Time
, io :
IO
)
def
format
(time :
Time
)
def
from_json
(pull :
JSON::PullParser
)
def
parse
(string, kind = @kind)
def
pattern
def
to_json
(value :
Time
, io :
IO
)