Skip to content

date-with-timezone datatype does not support negative years for BCE #83

@aj-stein-gsa

Description

@aj-stein-gsa

Describe the bug

As discovered through metaschema-framework/metaschema-java#375, it turns out that fn:year-from-dateTime() per specification on XPath 3.1 Functions (and underlying XML Schema XSD 1.0 and 1.1 data type specification), negative date years are permissible in the format -YYYY for <=-1 for BCE years.

Who is the bug affecting

Anyone developing Metaschema-aware tools and data with negative date and more complex data from historical periods.

How do we replicate this issue

See test failures and code workarounds from porting the official XPath 3.1 functions test suite to the metaschema-java test harness in metaschema-framework/metaschema-java@39fbfe5 (link to CI/CD failure in GitHub Actions).

Expected behavior (i.e. solution)

Negative dates are permitted.

Other comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions