[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Convert milliseconds into date

Subject: RE: Convert milliseconds into date
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 13 Apr 2006 17:44:16 +0100
nan milliseconds
> I used the following expression that I read in one of the archives:
> 
> <xsl:value-of select="xs:dateTime('1970-01-01T00:00:00') + $in *
> xs:dayTimeDuration('PT0.001S')"/>
> 
> The name space used is 
> xmlns:xdt="http://www.w3.org/2005/xpath-datatypes"
> 
> The result I get is NaN.

I think this is what you would get if

(a) the stylesheet specifies version="1.0"

and

(b) the value of $in is untypedAtomic.

Since you haven't shown us the xsl:stylesheet element or the declaration of
$in, this is just a hypothesis.

Michael Kay
http://www.saxonica.com/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.