parse-day ( str -- n )


Vocabulary
crontab.private

Inputs
stran object


Outputs
nan object


Definition


: parse-day ( str -- n )
[ string>number dup 7 = [ drop 0 ] when ] [
>lower
{ "sun" "mon" "tue" "wed" "thu" "fri" "sat" } index
] ?unless ;