def dh

cswap-bend-cli@0.1.0.0 · tui/fmt.bend:67

import cswap-bend-cli@0.1.0.0/tui/fmt.bend as Fmt
import Base

67def dh(+s: U32) -> String:
68  sel.s(U32.is_eq(((s % 86400) / 3600 : U32), 0), U32.show((s / 86400 : U32)) ++ "d",
69    U32.show((s / 86400 : U32)) ++ "d " ++ U32.show(((s % 86400) / 3600 : U32)) ++ "h")

Uses (8)

Used by (1)