MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / getDate

Function getDate

lib.esm/_admin/utils/date.js:17–23  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

15 return repeat("0", length - str.length) + str;
16}
17function getDate(date) {
18 return [
19 date.getFullYear(),
20 zpad(date.getMonth() + 1),
21 zpad(date.getDate())
22 ].join("-");
23}
24export function getDateTime(date) {
25 return getDate(date) + " " + [
26 zpad(date.getHours()),

Callers 1

getDateTimeFunction · 0.70

Calls 2

zpadFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected