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

Function ascForm

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

Source from the content-addressed store, hash-verified

32
33// "Thu Jan 1 00:00:00 1970", day-of-month space-padded to width 2.
34const ascForm = (t) => `${DAYS_ABBR[jsDay(t[6])]} ${MONTHS_ABBR[t[1] - 1]} ${String(t[2]).padStart(2, " ")} ${pad(t[3])}:${pad(t[4])}:${pad(t[5])} ${t[0]}`;
35
36const monthIndex = (name) => {
37 const full = MONTHS.findIndex((m) => m.toLowerCase() === name.toLowerCase());

Callers 1

fmt.jsFile · 0.85

Calls 2

jsDayFunction · 0.85
padFunction · 0.85

Tested by

no test coverage detected