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

docs(xmlupload): day-precision dates should be written with end date (DEV-2802) #564

Merged
merged 2 commits into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions docs/file-formats/xml-data-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,10 @@ Notes:
For example:
- "1893" will be expanded to a range from January 1st 1893 to December 31st 1893.
- "1893-01" will be expanded to a range from January 1st 1893 to January 31st 1893.
- "1893-01-01" will be expanded to a range from January 1st 1893 to January 1st 1893
(technically also a range).
- "1893-01-01" will be expanded to a range from January 1st 1893 **to the entire year 1893**.
- **Therefore, a day-precision date should always be written with start and end date:**
`GREGORIAN:CE:1893-01-01:CE:1893-01-01`


Attributes:

Expand All @@ -378,7 +380,7 @@ Example of a property with a public and a hidden date value:

```xml
<date-prop name=":hasDate">
<date permissions="prop-default">GREGORIAN:CE:2014-01-31</date>
<date permissions="prop-default">GREGORIAN:CE:2014-01-31:CE:2014-01-31</date>
<date>GREGORIAN:CE:1930-09-02:CE:1930-09-03</date>
</date-prop>
```
Expand Down