MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / nowUTC

Function nowUTC

console/src/util.ts:207–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205}
206
207export function nowUTC(): Date {
208 return fromZonedTime(
209 new Date(),
210 Intl.DateTimeFormat().resolvedOptions().timeZone,
211 );
212}
213
214export function exhaustiveGuard(val: never): never {
215 throw new Error(`Unhandled switch case: ${val}`);

Callers 3

utils.test.tsFile · 0.90
UsagePageFunction · 0.90
getTimeRangeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected