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

Re: difference between an integer and current-dateTime

Subject: Re: difference between an integer and current-dateTime()
From: "Wendell Piez wapiez@xxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 2 Apr 2020 13:05:15 -0000
Re:  difference between an integer and current-dateTime
Hey Mukul:

Expressing "Two hours and a half" is not so hard:

xs:dayTimeDuration('PT1H') * 2.5

returns (as a duration) PT2H30M

Makes sense to me.

Cheers, Wendell

On Thu, Apr 2, 2020 at 8:06 AM Mukul Gandhi gandhi.mukul@xxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> On Thu, Apr 2, 2020 at 3:32 PM Martin Honnen martin.honnen@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>>
>> Do you consider 2.5 an unsigned integer? It is not.
>
>
> The following, results in an error,
>
> <xsl:variable name="dt1" select="xs:dayTimeDuration('PT5H')"/>
> <xsl:value-of select="$dt1 div xs:dayTimeDuration('PT2.5H')"/>
>
> 2.5 needs to conform to the pattern |[0-9]+|  (i.e it cannot have a decimal point). There seems to be some non conformance.
>
>
>
>
> --
> Regards,
> Mukul Gandhi
> XSL-List info and archive
> EasyUnsubscribe (by email)



-- 
...Wendell Piez... ...wendell -at- nist -dot- gov...
...wendellpiez.com... ...pellucidliterature.org... ...pausepress.org...
...github.com/wendellpiez... ...gitlab.coko.foundation/wendell...

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.