MCPcopy
hub / github.com/twigjs/twig.js / stringDate

Function stringDate

test/test.filters.js:277–280  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

275 }
276
277 function stringDate(date) {
278 return pad(date.getDate()) + '/' + pad(date.getMonth() + 1) + '/' + date.getFullYear() +
279 ' @ ' + pad(date.getHours()) + ':' + pad(date.getMinutes()) + ':' + pad(date.getSeconds());
280 }
281
282 // NOTE: these tests are currently timezone dependent
283 it('should recognize timestamps', function () {

Callers 1

test.filters.jsFile · 0.70

Calls 1

padFunction · 0.70

Tested by

no test coverage detected