UNPKG

@northguild/gmt

Version:

Date and time library for JavaScript and TypeScript, built on TC39 Temporal: time zones, DST, business days, ISO 8601 strings in and out. Never throws.

9 lines (8 loc) • 394 B
// src/internal/zonedDifference/utcValidity.ts /** The zone that resolves exactly like `"UTC"` in the spec but through the validating branch. */ const UTC_EQUIVALENT_OFFSET_ZONE = "+00:00"; /** Defect 2: the spec validates every UTC exact time; `+00:00` resolves identically and does. */ function checkUtcValidity(compute) { compute(UTC_EQUIVALENT_OFFSET_ZONE); } export { checkUtcValidity };