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

Function fasterAccessDate

benchmark/date_format.cjs:10–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8const suite = new Benchmark.Suite();
9
10const fasterAccessDate = function() {
11 // 0 1 2 3 4 5 6
12 // Tue Apr 16 2013 16:40:09 GMT+0800 (CST)
13 // =>
14 // 16/Apr/2013:16:40:09 +0800
15 const dates = new Date().toString().split(' ');
16 return dates[2] + '/' + dates[1] + '/' + dates[3] + ':' + dates[4] + ' ' + dates[5].substring(3);
17};
18
19const fasterAccessDate2 = function() {
20 // 0 1 2 3 4 5 6

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…