MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / resolve

Function resolve

host/time/src/main/fmt.js:21–21  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

19
20// A JSON tuple string, or localtime(now) when the arg is omitted.
21const resolve = (t) => (t !== undefined ? JSON.parse(t) : JSON.parse(toTuple(new Date(), false)));
22
23const fmtTuple = (t, fmt) => {
24 const [Y, mo, d, H, Mi, S, w, j] = t;

Callers 2

fmt.jsFile · 0.70
promisifyFunction · 0.50

Calls 2

toTupleFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected