InstantSchema
const InstantSchema: GenericSchema<string, string>;Defined in: temporal-schemas.ts:49
valibot schema for an ISO-8601 instant with an offset or Z
(2026-06-18T16:00:00Z). Validated with Temporal.Instant.from and
normalized to UTC Z form. Output is a string, not a Temporal.Instant.
Example
Section titled “Example”import * as v from "valibot";import { InstantSchema } from "@xtandard/lib/valibot";
v.parse(InstantSchema, "2026-06-18T18:00:00+02:00"); // "2026-06-18T16:00:00Z"v.safeParse(InstantSchema, "2026-06-18T18:00:00").issues?.[0].message;// "Invalid instant (expected ISO-8601 with offset or Z)": no offset