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

Re: eXSLT date:add template

Subject: Re: eXSLT date:add template
From: James Fuller <jim.fuller@xxxxxxxxxxxxxx>
Date: Mon, 16 Jan 2006 16:30:45 +0100
Re:  eXSLT date:add template
Fraser Goffin wrote:

> (snipped)
> Here endDate is shown as the 27th Feb. One might expect this to be the
> 28th, but it all depends on whether adding 1 year to the 29th Feb
> should be 28th Feb in the following year or 01 March. The
> implementation takes the position that it should be 28th Feb and
> therefore, subtracting 1 day yields 27th.
>
> This seems reasonable.
>
> BUT, if I use a startDate of 2004-2-28 I will also get the same
> result. H'mm now I'm not so sure, maybe adding 1 year to 29th February
> SHOULD be 01 March after all ??
>
> Comments

I think M Kay comments are spot on here.

there are many non-intuitive results with date arithmetic

i tend to start here for any discussion with ISO 8601
http://www.cl.cam.ac.uk/~mgk25/iso-time.html

gl, Jim Fuller

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.