module

Time::Lucky

Inherits Avram::Type

Constants

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 methods

criteria(query : T, column : Symbol | String) forall T
Source
try_parsing_with_default_formatters(value : String)
Source
try_parsing_with_string_formats(value)
Source

Instance methods

from_db!(value : Time) : Time
Source
parse(value : String) : SuccessfulCast(Time) | FailedCast
Source
parse(value : Time) : SuccessfulCast(Time)
Source
parse(values : Array(Time)) : SuccessfulCast(Array(Time))
Source
to_db(value : Time) : String
Source

Nested types