[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: difference between an integer and current-dateTime
Am 31.03.2020 um 07:01 schrieb Mukul Gandhi gandhi.mukul@xxxxxxxxx:
B xmlns:xs="http://www.w3.org/2001/XMLSchema"On Mon, Mar 30, 2020 at 5:31 PM Michael Kay mike@xxxxxxxxxxxx <mailto:mike@xxxxxxxxxxxx> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx <mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>> wrote: -B B B B B B B B B B B B B xmlns:fn0="http://fns0" B B B B B B B B B B B B B exclude-result-prefixes="xs fn0" B B B B B B B B B B B B B version="3.0"> $epochDateTime" as="xs:dayTimeDuration"/> B B B B <xsl:value-of select="fn0:secsFromdiffDTduration($diffDTduration) div 60"/> B B </xsl:template> In general, if you want the difference in seconds, I would suggest to use div xs:dayTimeDuration('PT1S') for minutes div xs:dayTimeDuration('PT1M') or for hours div xs:dayTimeDuration('PT1H') As for the values, which dateTime is 1585633856?
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|