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

Return a numerical value based on years for sorting #5

Closed
cogat opened this issue May 22, 2017 · 1 comment
Closed

Return a numerical value based on years for sorting #5

cogat opened this issue May 22, 2017 · 1 comment

Comments

@cogat
Copy link
Contributor

cogat commented May 22, 2017

The current lower_ and upper_ methods return date objects, and are thus limited to date.min and date.max. This is limiting when it comes to long years, and means that all dates before 0 sort at the same amount.

It's probably better to define a method to return an integer form of EDTF lower and upper bounds to use for sorting.

Where only year is available, return a (long) integer. Where month and day are available, return a float according to the fraction of the year.

@jmurty
Copy link
Contributor

jmurty commented May 6, 2020

The underlying issue – lack of support for far past or future dates – was solved in #26

@jmurty jmurty closed this as completed May 6, 2020
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