Skip to content
On this page

Function: parseUtc()

TypeScript
function parseUtc(value: unknown): number | null;

Defined in: vote-core/src/verify.ts:52 (opens in a new tab)

Milliseconds for an iso8601_utc string (SPEC §0): YYYY-MM-DDTHH:MM:SSZ, optionally with .sss. Null for anything else, including a time with no zone, which Date.parse reads in the reader's own time zone, and a date that does not exist, which it rolls over.

ParametersLink to this section

ParameterType
valueunknown

ReturnsLink to this section

number | null