xsl-list
[Top] [All Lists]

Re: [xsl] Getting years from duration

2013-06-08 19:15:08
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>