MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / formatTime

Function formatTime

scripts/ggdrive_downloadPdf.js:93–95  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

91
92 let startTime = Date.now();
93 function formatTime(ms) {
94 return new Date(ms).toISOString().slice(11, 19);
95 }
96 function getTime() {
97 return formatTime(Date.now() - startTime);
98 }

Callers 1

getTimeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected