struct TandaCLI::Models::ClockInDay

Overview

A day given on the command line, which can only become a date once the configured start of the week is known

Defined in:

tanda_cli/models/clock_in_day.cr

Constant Summary

SHORTEST_DAY_NAME = 3

Class Method Summary

Instance Method Summary

Class Method Detail

def self.parse(input : String) : ClockInDay | Error::Base #

[View source]
def self.parse_day_of_week(input : String) : Time::DayOfWeek | Nil #

[View source]

Instance Method Detail

def on(start_of_week : Time::DayOfWeek) : Time #

[View source]