XSLT Function UTCDateTime

Returns current UTC timestamp.

NAMESPACE

xmlns:AS="http://schema.advantages.cz/AsapFunctions"

SYNTAX

string UTCDateTime()

Stylesheet

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
	xmlns:AS="http://schema.advantages.cz/AsapFunctions"
	xmlns:date="http://exslt.org/dates-and-times" exclude-result-prefixes="AS date">

	<xsl:template match="/">
		<ROOT>
			<xsl:value-of select="AS:UTCDateTime()" />
		</ROOT>
	</xsl:template>
</xsl:stylesheet>

EXAMPLE

Example of returned value: 2018-03-27T14:20:59.9439565Z