Clarification on DateTime Format (1.7)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Documentation
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- documentation
Research direction
Start with Foundation-API section 1.7 and the linked BCF-XML 3.0 DateTime Format section, comparing their treatment of timezone-less values and timezone offset syntax. Done means the consistency question is resolved and section 1.7 clearly documents the agreed BCF-API behavior.
Written by the indexing model from the issue text.
Description
Here is what Foundation-API section 1.7 says:
1.7 DateTime Format
DateTime values must be rfc3339 compliant.
Examples:
2016-04-28T16:31:12Zwould represent Thursday, April 28th, 2016, 16:31:12 (0ms) in UTC timezone.
2016-04-28T16:31:12.270Zwould represent Thursday, April 28th, 2016, 16:31:12 (270ms) in UTC timezone.
2016-04-28T16:31:12.270+02:00would represent Thursday, April 28th, 2016, 16:31:12 (270ms) with a time zone offset of +2 hours relative to UTC.
And this is from BCF-XML 3.0:
DateTime Format
DateTime values in this specification are always of type
xs:dateTimewhich is an ISO 8601 compatibleYYYY-MM-DDThh:mm:ssformat with optional time zone indicators. This is the same format as defined in the BCF-API specification.
For example,
2016-04-28T16:31:12.270+02:00would represent Thursday, April 28th, 2016, 16:31:12 (270ms) with a time zone offset of +2 hours relative to UTC. Please note that the colon in the timezone offset is optional, so+02:00is equivalent to+0200.
To void ambiguity, this specification steps away from ISO 8601 on the topic of DateTime values with no timezone: The ISO 8601 says that DateTime values with no timezone designator are local times - In BCF all DateTime values with no timezone designator are assumed to be in UTC.
So what about the brilliant part where you deliberately (and needlessly) violate ISO 8601?
Would BCF-API handle that differently than BCF-XML, or do the two behave consistently and you just forgot to mention it in the Foundation-API's documentation?
- Dominant language
- No language data
- Stars
- 39
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from buildingSMART/foundation-API
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
buildingSMART/foundation-API#42 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
buildingSMART/foundation-API#41 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
buildingSMART/foundation-API#39 · 1 comment · 2 reactions ·
-
Difficulty 1/5 Under an hour Newbie friendliness 35/100
buildingSMART/foundation-API#27 · 1 comment · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
buildingSMART/foundation-API#26 · 3 comments ·
All issues in buildingSMART/foundation-API
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
agilepathway/label-checker#640 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BasedHardware/omi#15662 · 1 comment ·
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
amponce/archive-movie-browser#167 ·
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·