This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Fun fun! Parse Unity Pro date stamp and normalize to ISO8601. Add leading zeros to fields if they aren't there. --> | |
<xsl:variable name="fullTs"><xsl:value-of select="substring-after(/FEFExchangeFile/fileHeader/@dateTime, 'date_and_time#')"/></xsl:variable> | |
<xsl:variable name="year"><xsl:value-of select="substring-before($fullTs, '-')" /></xsl:variable> | |
<xsl:variable name="month"><xsl:value-of select="substring-before(substring-after($fullTs, '-'), '-')"></xsl:value-of></xsl:variable> | |
<xsl:variable name="day"><xsl:value-of select="substring-before(substring-after(substring-after($fullTs, '-'), '-'), '-')"/></xsl:variable> | |
<xsl:variable name="hour"><xsl:value-of select="substring-before(substring-after(substring-after(substring-after($fullTs, '-'), '-'), '-'), ':')"/></xsl:variable> | |
<xsl:variable name="minute"><xsl:value-of select="substring-before(substring-after(substring-after(substring-after(substring-after($fullTs, '-'), '-'), '-'), ':'), ':')"/></xsl:variable> | |
<xsl:variable name="second"><xsl:value- |