Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6978675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:47:14+00:00 2026-05-27T17:47:14+00:00

I have a simple question: what is the longest / infinite duration that can

  • 0

I have a simple question: what is the longest / “infinite” duration that can be specified using xsd:dayTimeDuration() (in the ISO8601 format)?

Thanks,
M.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:47:15+00:00Added an answer on May 27, 2026 at 5:47 pm

    The W3C XSD specification doesn’t restrict/specify the maximum value for an xs:dayTimeDuration:

    The values of the Year, Month, Day, Hour and Minutes components are
    not restricted but allow an arbitrary unsigned integer, i.e., an
    integer that conforms to the pattern [0-9]+.

    However, a particular implementation may impose its implementation-dependent limits.

    For example, Saxon allows this value:

    xs:dayTimeDuration('P999999999DT2H30M10S')
    

    but raises an error on this value (one more 9-digit added to the days component):

    xs:dayTimeDuration('P9999999999DT2H30M10S')
    

    FORG0001: Invalid duration value ‘P9999999999DT2H30M10S’ (non-numeric
    component)

    XQSharp allows a bigger value — this is accepted:

    xs:dayTimeDuration('P999999999999999999DT2H30M10S')
    

    But one digit more in the days component raises an error:

    xs:dayTimeDuration('P9999999999999999999DT2H30M10S')
    
    FODT0002: Underflow or overflow in construction of 'dayTimeDuration' in namespace 'http://www.w3.org/2001/XMLSchema' from value 'P9999999999999999999DT2H30M10S'.
    

    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 5124000000000 days.

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple question, but can't find the answer that I'm looking for.
I have a simple question. Is there a way ( using reflections I suppose
I have a simple question, but I'm about 80% sure that the answer to
I have a simple question that I am posing mostly for my curiousity. What
I have a simple question how do I remove a \ with regex? Thanks
I have a simple question related to database schema, how can I check whether
I have a simple question that which method is best and why ? Use
I have a simple question. I know that shell scripts are slow/ineffective when it
I have a simple question about usage of Hibernate. I keep seeing people using
i have a simple question. I have a UITableView in which you can add

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.