• Calculates a future timestamp in XML Schema 1.1.2 date-time format based on a given number of seconds.

    This function takes a number of seconds and adds it to the current timestamp, returning a date-time string in the format "yyyy-MM-ddTHH:mm:ssZ" without milliseconds.

    Parameters

    • secondsInFuture: number

      The number of seconds to project into the future.

    Returns string

    The future timestamp in XML Schema 1.1.2 format.

    Example

    const futureTimestamp = getFutureXmlSchema112Timestamp(60); // "2023-08-23T12:35:56Z"