module TandaCLI::Utils::Time
Extended Modules
Defined in:
tanda_cli/utils/time.cr
Constant Summary
-
DEFAULT_DATE_FORMAT =
"%A, %d %b %Y"
-
DEFAULT_DATE_TIME_FORMAT =
"#{DEFAULT_DATE_FORMAT} | #{DEFAULT_TIME_FORMAT}"
-
DEFAULT_TIME_FORMAT =
"%l:%M %p"
-
ISO_DATE =
"%Y-%m-%d"
Instance Method Summary
Instance Method Detail
def
iso_date(date : ::Time) : String
#
def
iso_date(date : String) : ::Time
#
def
pretty_date(date : ::Time) : String
#
def
pretty_date_time(time : ::Time) : String
#
def
pretty_time(time : ::Time) : String
#