Skip to content

date() should support dates before 1000 CE #767

@1ec5

Description

@1ec5

The documentation for is_date() says it only works for dates starting in 1000 CE:

To be a date the year must be bigger than 1000, the month if present less or equal 12, the day if present less or equal 31, the hour if present less or equal 24, and the minute and second if present less or equal 60.

For OpenHistoricalMap’s Overpass API instance, almost query ends up needing to filter elements by start_date=* and end_date=* tags expressed in ISO 8601 format. These dates can be as far back in time as necessary, but most OHM software supports at least -9999-01-01 to the end of the present year, if not earlier and later than that. We’d like users to be able to filter dates by date(), which would require the ability to evaluate dates further back in time. The alternative is to rely on the lexicographical sorting property of ISO 8601, but this is error-prone when filtering by end_date=*.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions