mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-21 12:20:48 +02:00
6 lines
200 B
JavaScript
6 lines
200 B
JavaScript
/** Resolve an injectable clock and serialize it for durable runtime state. */
|
|
export function currentIsoTimestamp(now) {
|
|
const current = now ? now() : new Date();
|
|
return current.toISOString();
|
|
}
|