[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: "xslt xslfo" <xslt.techie@xxxxxxxxx>
Date: Thu, 13 Apr 2006 11:26:11 -0500
convert milliseconds to date
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.

Saxon (both 6.5.5 and 8.7.1) support the "core" EXSLT date functions
but not
the "other" (non-core) functions listed at
http://www.exslt.org/date/index.html. The core functions don't include
any
date arithmetic.

I suggest you use Saxon 8.7.1 and use the XPath 2.0 date arithmetic
functions and operators as the simplest solution to your problem.

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

> -----Original Message-----
> From: xslt xslfo [mailto:xslt.techie@xxxxxxxxx]
> Sent: 13 April 2006 16:42
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Convert milliseconds into date
>
> Hello:
>
> RenderX is used for the processing. It uses SAXON as the xslt engine.
> I have searched high and dry for a solution to this. I would
> appreciate if you could point me in the right direction for a
> solution.
>
> Jon Gorman <jonathan.gorman@xxxxxxxxx> wrote:
>
>     On 4/13/06, xslt xslfo wrote:
>     > Hello:
>     >
>     > I am using version 1.0.
>
>     You need to know the processor. You're just stating the version
of
>     the stylesheet. That's like responding to someone asking
> what browser
>     you use and you say "HTML 4.01". You need to look for
> examples with
>     the processor you're running (xsltproc, saxon, xalan...
>
>     Can you point me to an example to implement
>     > these templates using EXSLT extensions?
>
>     Not without knowing the processor.
>
>     Interesting gmail addy.

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.