def epoch_text

cswap-bend-cli@0.1.0.0 · daemon/rows.bend:17

import cswap-bend-cli@0.1.0.0/daemon/rows.bend as Rows
import Base
import cswap-bend-cli@0.1.0.0/daemon/config.bend as Cfg

17# "1792740000.1" -> 1792740000, "7" -> 7; None for anything else.
18def epoch_text(+t: String) -> Maybe<&2, U32>:
19  Cfg.read_u32(Maybe.default(&2, String, List.head(&2, String, String.split(t, '.')), ""))

Uses (8)

Used by (2)