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

Function cpyWday

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

Source from the content-addressed store, hash-verified

8const pad = (n, w = 2) => String(n).padStart(w, "0");
9// CPython tm_wday is Mon=0..Sun=6; JS getDay is Sun=0. Convert both ways.
10const cpyWday = (d) => (d + 6) % 7;
11const jsDay = (cpy) => (cpy + 1) % 7;
12
13// Date -> struct_time JSON, CPython order (Y, m, d, H, M, S, wday, yday, isdst).

Callers 1

toTupleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected