Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibly incorrect XSD dateTime conversion #21

Open
wouterbeek opened this issue Oct 27, 2017 · 1 comment
Open

Possibly incorrect XSD dateTime conversion #21

wouterbeek opened this issue Oct 27, 2017 · 1 comment

Comments

@wouterbeek
Copy link
Contributor

wouterbeek commented Oct 27, 2017

Negative years seems to be off by one:

?- rdf_equal(xsd:dateTime, Type), xsd_time_string(DateTime, Type, '-2999-01-01T00:00:00Z').
Type = 'http://www.w3.org/2001/XMLSchema#dateTime',
DateTime = date_time(-3000, 1, 1, 0, 0, 0, 0).

Negative years that consist of more than four digits are not parsed:

?- rdf_equal(xsd:dateTime, Type), xsd_time_string(DateTime, Type, '-222999-12-01T00:00:
ERROR: Syntax error: xsd_time
@JanWielemaker
Copy link
Member

Pushed a patch for years with more than 4 digits. That seems clear. If I read https://www.w3.org/TR/xmlschema-2/#dateTime though, 0000 seems to be the year 1BC. Not sure how to interpret
all this though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants