MCPcopy Index your code
hub / github.com/nodejs/node / getLocaleTimeString

Function getLocaleTimeString

test/fixtures/snapshot/typescript.js:122737–122741  ·  view source on GitHub ↗

* Get locale specific time based on whether we are in test mode

(system)

Source from the content-addressed store, hash-verified

122735 * Get locale specific time based on whether we are in test mode
122736 */
122737 function getLocaleTimeString(system) {
122738 return !system.now ?
122739 new Date().toLocaleTimeString() :
122740 system.now().toLocaleTimeString("en-US", { timeZone: "UTC" });
122741 }
122742 ts.getLocaleTimeString = getLocaleTimeString;
122743 /**
122744 * Create a function that reports watch status by writing to the system and handles the formatting of the diagnostic

Callers 1

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected