PlainTimeSchema
const PlainTimeSchema: GenericSchema<string, string>;Defined in: temporal-schemas.ts:90
valibot schema for a wall-clock time HH:MM[:SS]. Validated with
Temporal.PlainTime.from and normalized to the canonical string (seconds
always present). Output is a string, not a Temporal.PlainTime.
Example
Section titled “Example”import * as v from "valibot";import { PlainTimeSchema } from "@xtandard/lib/valibot";
v.parse(PlainTimeSchema, "09:00"); // "09:00:00"v.safeParse(PlainTimeSchema, "25:00").issues?.[0].message;// "Invalid plain time (expected HH:MM[:SS])"