W3C home > Mailing lists > Public > public-forms@w3.org > August 2007

Error in months() function example?

From: John Boyer <boyerj@ca.ibm.com>
Date: Mon, 13 Aug 2007 23:28:09 -0700
To: Forms WG (new) <public-forms@w3.org>
Message-ID: <OFDE57278D.1DD0D943-ON88257337.00235592-88257337.0023899C@ca.ibm.com>
Just doing my action items, one of which requires me to better explain the 
examples for seconds() and months().

Going all the way back to XForms 1.0 first ed., we have the example 
months("P1Y2M") returns 14.

Surely that should be 24, right?!?

The P1 doesn't affect the outcome, the M part expresses zero months, and 
the Y part gives two years, which is 24 months, not 14.

John M. Boyer, Ph.D.
STSM: Lotus Forms Architect and Researcher
Chair, W3C Forms Working Group
Workplace, Portal and Collaboration Software
IBM Victoria Software Lab
E-Mail: boyerj@ca.ibm.com 

Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer
Received on Tuesday, 14 August 2007 06:28:34 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:13:53 UTC