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

compare function for simple dates #3

Open
justincy opened this issue Jun 6, 2014 · 1 comment
Open

compare function for simple dates #3

justincy opened this issue Jun 6, 2014 · 1 comment

Comments

@justincy
Copy link
Contributor

justincy commented Jun 6, 2014

simpleDate.compare(otherSimpleDate)

Should behave like the compare function that Array.sort expects.

@compiledpanda
Copy link
Member

It should probably be GedcomXDate.compare(date1, date2) to be fully compatible.

It would be nice if it allowed for ranges, but that's probably asking for a bit to much.

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

No branches or pull requests

2 participants