MCPcopy
hub / github.com/tomdionysus/foaas / ISODateString

Method ISODateString

lib/foaas.js:239–245  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

237 }
238
239 ISODateString (d) {
240 const pad = function (n) {
241 if (n < 10) { return `0${n}` } else { return n }
242 }
243
244 return d.getUTCFullYear() + '-' + pad(d.getUTCMonth() + 1) + '-' + pad(d.getUTCDate()) + 'T' + pad(d.getUTCHours()) + ':' + pad(d.getUTCMinutes()) + ':' + pad(d.getUTCSeconds()) + 'Z'
245 }
246 }
247 FOAAS.initClass()
248 return FOAAS

Callers 2

doMethod · 0.95
startMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected