The UNIX timestamp to convert, measured in seconds.
A date-time string in the format "yyyy-MM-ddTHH:mm:ssZ", compliant with XML Schema 1.1.2, based on the provided UNIX timestamp.
const issuanceDate = getXmlSchema112Timestamp(1633036800); // "2021-10-01T00:00:00Z"
Converts a UNIX timestamp to an XML Schema 1.1.2 compliant date-time string, omitting milliseconds.
This function takes a UNIX timestamp (number of seconds since the UNIX epoch) as input and converts it to a date-time string formatted according to XML Schema 1.1.2 specifications, specifically omitting the milliseconds component from the standard ISO 8601 format. This is useful for generating timestamps for verifiable credentials and other applications requiring precision to the second without the need for millisecond granularity.