I have a simple question: what is the longest / “infinite” duration that can be specified using xsd:dayTimeDuration() (in the ISO8601 format)?
Thanks,
M.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The W3C XSD specification doesn’t restrict/specify the maximum value for an xs:dayTimeDuration:
However, a particular implementation may impose its implementation-dependent limits.
For example, Saxon allows this value:
but raises an error on this value (one more 9-digit added to the days component):
XQSharp allows a bigger value — this is accepted:
But one digit more in the days component raises an error:
Both of these two XPath implementations allow much bigger value-space than would be practically needed — just take into account that the age of the Universe is estimated at not more than 14 billion years, which is
5124000000000days.XQSharp allows for durations considerably bigger than the age of the Universe, while the maximum Saxon allows is just slightly less than the age of the Universe.