/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 462c66077cae
 */

import * as z from "zod/v4";

export function constDateTime(
  val: string,
): z.ZodType<string, unknown> {
  return z.custom<string>((v) => {
    return (
      typeof v === "string" && new Date(v).getTime() === new Date(val).getTime()
    );
  }, `Value must be equivalent to ${val}`);
}
