MCPcopy Create free account
hub / github.com/zxlie/FeHelper / pad

Function pad

apps/sticky-notes/date-utils.js:30–32  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

28let getISODateTime = function (d) {
29
30 function pad(n) {
31 return n < 10 ? '0' + n : n
32 }
33
34 return d.getUTCFullYear() + '-'
35 + pad(d.getUTCMonth() + 1) + '-'

Callers 1

getISODateTimeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected