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

new check - pubDate #19

Open
mobb opened this issue Sep 10, 2018 · 0 comments
Open

new check - pubDate #19

mobb opened this issue Sep 10, 2018 · 0 comments

Comments

@mobb
Copy link
Contributor

mobb commented Sep 10, 2018

pubDate is typed to xs:Date or xs:gYear
xs:Date is ISO, so, yyyy-mm-dd (confirm)
xs:gYear is pretty flexible. -- basically any integer (and negative too).

So knb-lter-nwt.735.2 has this:
<pubDate>20111231</pubDate>
It passes the EML parser, but it refers to a year many millennia in the future, not to a date (2011-12-31)

Check action: If content is only a single integer, it must be 4-digit (warn if not)

Because this is for pubDate, its safe to assume we will not be publishing data through the ECC in the year 10000

Checking format of another xs:Date might be more complex, so saving that for later

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

1 participant