def tz.day

bend-kit-time@0.3.0.0 · time.bend:946

import bend-kit-time@0.3.0.0/time.bend as Time
import Base

946def tz.day(s: String) -> Maybe<&2, TzDayPart>:
947  match s:
948    case SCon{Chr{74}, t}:
949      do Maybe<&2, TzDayPart>:
950        n : TzField <- tz.number(t)
951        tz.day.j(n)
952    case SCon{Chr{77}, t}:
953      tz.day.m(t)
954    case _:
955      do Maybe<&2, TzDayPart>:
956        n : TzField <- tz.number(s)
957        tz.day.n(n)

Uses (14)

Used by (1)