I am trying to generate timestamp but its giving me a floating number :
<xsl:variable name="timestamp" select="seconds-from-dateTime(current-dateTime())-seconds-from-dateTime(xs:dateTime('1970-01-01T00:00:00'))"/>
output sth like this: 40.638
I am using functions describe here
From that page you linked to:
The second value has 0 in its seconds component, and the first value has a value in the range [0, 60) in its seconds component, so the result will always be between 0 and 60. Have you tried this: