def reset_full

cswap-bend-cli@0.1.0.0 · tui/card.bend:87

import cswap-bend-cli@0.1.0.0/tui/card.bend as Card
import Base
import cswap-bend-cli@0.1.0.0/tui/fmt.bend as F
import cswap-bend-cli@0.1.0.0/usage/norm.bend as UNorm

87# The same with the local clock time of the reset: "resets 2h 13m · 20:39".
88def reset_full(+r: Maybe<&2, U32>, +now: U32, +off: U32) -> String:
89  match r:
90    case None{}:
91      ""
92    case Some{t}:
93      F.sel.s(U32.is_gt(t, now), reset_short(r, now) ++ " · " ++ UNorm.clock.text(t, now, off), reset_short(r, now))

Uses (8)

Used by (1)