Closed MartijnR closed 5 years ago
Thank you!
Internally an XPath Evaluator will call the number()
function to cast operands and function parameters to a number when required. It does this e.g. when +
is used as in '2' + 1
is evaluated behind-the-scenes via number('2') + 1
.
I tried to define the ODK behavior with date comparisons . < today()
and date arithmetic today() + 1
in the same manner (even though we may use all kinds of wizardry in JavaRosa and Enketo implementations), to make it consistent with native arithmetic and comparisons.
Hi @ggalmazor,
Does this sufficiently and clearly document the date, dateTime, time, datatypes and
today()
andnow()
?P.S. I snuck in the missing +, - operators. Sorry about that.