module Time::Lucky

Included Modules

Extended Modules

Defined in:

avram/charms/time_extensions.cr

Constant 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

Instance Method Summary

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!

Class Method Detail

def self.criteria(query : T, column) forall T #

[View source]
def self.try_parsing_with_default_formatters(value : String) #

[View source]
def self.try_parsing_with_string_formats(value) #

[View source]

Instance Method Detail

def from_db!(value : Time) #

[View source]
def parse(value : String) : SuccessfulCast(Time) | FailedCast #

[View source]
def parse(value : Time) #

[View source]
def parse(values : Array(Time)) #

[View source]
def to_db(value : Time) : String #

[View source]