def num.u

cswap-bend-cli@0.1.0.0 · pollrow.bend:53

import cswap-bend-cli@0.1.0.0/pollrow.bend as Pollrow
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json

53# An integer second count from a JSON number (`1792740000.1` -> 1792740000).
54def num.u(j: Json.Json) -> Maybe<&2, U32>:
55  match j:
56    case Json.JNum{t}:
57      num.int(String.split(t, '.'))
58    case _:
59      None{}

Uses (6)

Used by (1)