• Validates a timestamp string against the XML Schema 1.1.2 date-time format.

    This function checks whether the provided timestamp string conforms to the format "yyyy-MM-ddTHH:mm:ssZ", without milliseconds, as defined in XML Schema 1.1.2.

    Parameters

    • timestamp: string

      The timestamp string to validate.

    Returns boolean

    true if the timestamp is valid, false otherwise.

    Example

    const isValid = isValidXmlSchema112Timestamp('2023-08-23T12:34:56Z'); // true