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

EDTFDate.precision - question #1

Closed
sdreher opened this issue Nov 18, 2015 · 2 comments
Closed

EDTFDate.precision - question #1

sdreher opened this issue Nov 18, 2015 · 2 comments

Comments

@sdreher
Copy link

sdreher commented Nov 18, 2015

Hi -

Great work on the python-edtf implementation. I'm hoping to use and contribute to this project for a larger application that stores fragmentary and ambiguous dates.

Can you explain your thinking around the EDTFDate.precision function? I do have some confusion around what's being defined as "precision".

  • Given an EDTF format of 14uu, the precision returns PRECISION_YEAR. I would expect it to return PRECISION_CENTURY, as only the century is specified.
  • Given an EDTF format of 146u, the precision returns PRECISION_YEAR. I would expect it to return PRECISION_DECADE, as only the decade is specified.

Thanks in advance!

@sdreher sdreher closed this as completed Nov 18, 2015
@cogat
Copy link
Contributor

cogat commented Nov 19, 2015

@sdreher thanks for raising this - I've seen you closed the issue but wanted to note the answer for record:

According to https://www.loc.gov/standards/datetime/pre-submission.html#unspecified , "14uu" means "some unspecified year in the 1400s" - so it is year precision (just not specific about which one). To specify the century, you'd use 14xx.

@sdreher
Copy link
Author

sdreher commented Nov 23, 2015

@cogat - Thanks for following up. Very appreciated. Yes - as I dug deeper into the specification I saw the 'x' is preferred to determine precision, so went ahead and closed the issue. You can take a look at https://github.com/ccnmtl/footprints to see the larger project I referenced. The ability to use real sortable dates will definitely make the project come to life.

ColeDCrawford pushed a commit to artshumrc/python-edtf that referenced this issue Apr 30, 2024
Brings some updates to comply with final standard
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