cbor.epoch-ms
- description
- The time in milliseconds if cbor is tag 1 (epoch seconds) of an integer or a double
- type
Fn(cbor: Union{#none, #some(@cbor.item)}) -> Union{#none, #some(Number)}- expression
fn(cbor$0) => match $0 { #some(found$1) => match $1 { #tagged(tagged$2) => match @core.equal(left: $2.tag, right: 1) { true => match $2.value { #integer(seconds$3) => #some(@core.multiply(left: $3, right: 1000)), #float(float$4) => match @core.equal(left: $4.info, right: 27) { true => @cbor.float64-seconds-to-ms(bits: $4.bits), false => #none }, _ => #none }, false => #none }, _ => #none }, #none(_) => #none }- visibility
- public
cbor.epoch-ms (project cbor, branch main, snapshot 5bvML2Im-osGmgnKJsp0FwmfSMONephnrgdWQboV3-E) id: ghgy48OQO30zn4HrCS0p7fNDABWhoXSIslwcjHTNuH4 content hash: 2xzBV3h2g16pNGV9tG6RYqNyJblOCpL9HJAUx_FvTWI