-
Notifications
You must be signed in to change notification settings - Fork 4
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
Defining Test Vectors #19
Comments
RFC3339 is what Epoch 1.2 was with the non-strict flag, because it did not accept date-time with Weeks or Ordinal Days, so by changing Epoch library we cannot equate RFC3339 to be the same as ISO8601 with Strict = false anymore. We will need to have dedicated functions for RFC3339. |
I will submit that the following "ambiguous" ISO8601 entries be moved to Strictly valid test vector: 12:43:37-04:00 16:43:37Z 16:43:37+00:00 16:43Z 12:43-04 12:43-04:00 16Z 12:43 12-04 |
As for the time strings without colon, these cannot be ambiguous, so they have to be rejected until we have a mean to provide the developer/user with a mutual agreement strategy:
1243Z is unambiguous because of the timezone designator, so I will move it to valid iso 1643Z |
@francois-normandin thanks for the Venn diagram summary - it looks great. Regarding arbitrary years (202, 20), LabVIEW only recognizes timestamps between the years 1600 and 9999, so I'm not sure there is a need to support 1,2,3 or 5 digit years? You have 2025 highlighted, but is that ambiguous? |
2025 or 20:25 without colon? As a generic ISO string, it is definitely ambiguous |
202 actually means the 2nd decade in the 20th century... No way we can support this without class based strategies. Let's drop |
2025 is meant to only resolve to "year 2025", but that's kind of a weird corner case for labview timestamp since it would need to be cast to jan1 at midnight, local time. We do not have a ISO year to timestamp anyway. |
Good news I think: 6 digit dates are not allowed without a separator:
Yeah I'm not trying to die on any hills here haha |
Only remaining degeneracies (?): These can be lifted via methods " Generic " |
Just saw this. My reading of the spec is that 3 digit date isn't allowed. Either way - let's drop it! |
All above I'm referring to ISO8601-2016 |
Comments:** not ambiguous because 6 digit date is not allowed without a separator. |
Comments:
|
Suggestion: let's split the 'invalid' tests into 'invalid' and 'unsupported'. I think it's perfectly reasonable not to support two digit numbers as being ambiguous, but will be better documented as 'unsupported' instead of 'invalid'. For example:
|
This ticket will be for discussion about test vectors to be included for Epoch library.
@ciozi137 After review, the Venn diagram represents very well the state of the standard, although we are not supporting intervals and durations, nor mutual agreements.
Our Test Vectors should reflect the following situation:
The text was updated successfully, but these errors were encountered: