MCPcopy Create free account
hub / github.com/node-modules/utility / fasterAccessDate2

Function fasterAccessDate2

benchmark/date_format.cjs:19–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17};
18
19const fasterAccessDate2 = function() {
20 // 0 1 2 3 4 5 6
21 // Tue Apr 16 2013 16:40:09 GMT+0800 (CST)
22 // =>
23 // 16/Apr/2013:16:40:09 +0800
24 const dates = Date().split(' ');
25 return dates[2] + '/' + dates[1] + '/' + dates[3] + ':' + dates[4] + ' ' + dates[5].substring(3);
26};
27
28console.log('moment().format("DD/MMM/YYYY:HH:mm:ss ZZ"): %j', moment().format('DD/MMM/YYYY:HH:mm:ss ZZ'));
29console.log('utils.accessLogDate(): %j', utils.accessLogDate());

Callers 1

date_format.cjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…