module
TandaCLI::Utils::Time
Extended Modules
Defined in:
tanda_cli/utils/time.crConstant 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
- #iso_date(date : ::Time) : String
- #iso_date(date : String) : ::Time
- #location : ::Time::Location
- #now : ::Time
- #pretty_date(date : ::Time) : String
- #pretty_date_time(time : ::Time) : String
- #pretty_time(time : ::Time) : String
-
#span_between(start_time : ::Time, finish_time : ::Time) : ::Time::Span
Times of day carry no date, so a finish before the start wraps past midnight
Instance Method Detail
def span_between(start_time : ::Time, finish_time : ::Time) : ::Time::Span
#
Times of day carry no date, so a finish before the start wraps past midnight