Skip to content

Add a feature to extend the supported range of dates #886

@jedel1043

Description

@jedel1043

At boa (A Javascript interpreter) we're using chrono to handle the Javascript Date builtin; we mainly use it to easily create, parse and format local and UTC datetimes. However, we discovered that several tests were failing because of the supported range of dates by chrono. The README specifies:

Date types are limited in about +/- 262,000 years from the common epoch.

While the ECMAScript spec mentions:

The smaller range supported by a time value as specified in this section is approximately -273,790 to 273,790 years relative to 1970.

chrono's supported range is smaller than the range specified by the spec.

The time crate has a feature (large-dates) to extend the allowed range of dates, so we would be very glad to see a similar feature in chrono that extended its supported range.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions