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

Function jsDay

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

Source from the content-addressed store, hash-verified

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).
14const toTuple = (dt, utc) => {

Callers 2

fmtTupleFunction · 0.85
ascFormFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected