module Time::Lucky
Included Modules
Extended Modules
Defined in:
avram/charms/time_extensions.crConstant Summary
-
TIME_FORMATS =
[Time::Format::ISO_8601_DATE_TIME, Time::Format::RFC_2822, Time::Format::RFC_3339, Time::Format.new("%Y-%m-%dT%H:%M:%S", Time::Location::UTC), Time::Format.new("%Y-%m-%dT%H:%M", Time::Location::UTC), Time::Format::HTTP_DATE, Time::Format::ISO_8601_DATE, Time::Format::ISO_8601_TIME]
Class Method Summary
- .criteria(query : T, column) forall T
- .try_parsing_with_default_formatters(value : String)
- .try_parsing_with_string_formats(value)
Instance Method Summary
- #from_db!(value : Time)
- #parse(value : String) : SuccessfulCast(Time) | FailedCast
- #parse(value : Time)
- #parse(values : Array(Time))
- #to_db(value : Time) : String
Instance methods inherited from module Avram::Type
from_db!(value)
from_db!,
parse(value : Nil)parse(values : Array(String)) parse, parse!(value) parse!, to_db(value : Nil) to_db, to_db!(value) to_db!