[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Getting years from duration

Subject: Re: [xsl] Getting years from duration
From: Liam R E Quin <liam@xxxxxx>
Date: Sun, 09 Jun 2013 09:14:23 +0900

On Sat, 2013-06-08 at 16:55 -0700, Martin Holmes wrote:
> We only wanted years, but a plain subtraction won't do, as others have 
> noted; you need to check whether to subtract a year from the result or 
> not, depending on the times of year of the births and deaths. 
You also have to decide if someone, on a day before his fourteenth
birthday, is thirteen years and twelve momths old, or thirteen years and
eleven months, even if the birhday is on the 31st of March, or on the
29th of February.

Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml

Current Thread