-
Notifications
You must be signed in to change notification settings - Fork 43
datetime_object: specify supported iso8601 formats #3155
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
Comments
ligurio
added a commit
to ligurio/tarantool
that referenced
this issue
Aug 1, 2024
The commit 3c40366 ("datetime, lua: date parsing functions") introduced a function `datetime.parse()`. The function accepts a datetime format: 'iso8601', 'rfc3339' and a custom datetime format. However, 'iso8601' as well as 'rfc3339' is a set of datetime formats (see [1] and [2]), and `datetime.parse()` supports a subset of these formats. There is a documentation issue [3], where we should describe what formats are supported and what formats are not. Supported formats must be added to the testing and the patch do it. 1. https://datatracker.ietf.org/doc/html/rfc3339 2. https://ijmacd.github.io/rfc3339-iso8601/ 3. tarantool/doc#3155 Needed for tarantool/doc#3155 NO_CHANGELOG=testing NO_DOC=tarantoolgh-3155
ligurio
added a commit
to ligurio/tarantool
that referenced
this issue
Aug 12, 2024
The commit 3c40366 ("datetime, lua: date parsing functions") introduced a function `datetime.parse()`. The function accepts a datetime format: 'iso8601', 'rfc3339' and a custom datetime format. However, 'iso8601' as well as 'rfc3339' is a set of datetime formats (see [1] and [2]), and `datetime.parse()` supports a subset of these formats. There is a documentation issue [3], where we should describe what formats are supported and what formats are not. Supported formats must be added to the testing and the patch do it. 1. https://datatracker.ietf.org/doc/html/rfc3339 2. https://ijmacd.github.io/rfc3339-iso8601/ 3. tarantool/doc#3155 Needed for tarantool/doc#3155 Co-authored-by: Sergey Kaplun <[email protected]> NO_CHANGELOG=testing NO_DOC=tarantoolgh-3155
ligurio
added a commit
to ligurio/tarantool
that referenced
this issue
Aug 12, 2024
The commit 3c40366 ("datetime, lua: date parsing functions") introduced a function `datetime.parse()`. The function accepts a datetime format: 'iso8601', 'rfc3339' and a custom datetime format. However, 'iso8601' as well as 'rfc3339' is a set of datetime formats (see [1] and [2]), and `datetime.parse()` supports a subset of these formats. There is a documentation issue [3], where we should describe what formats are supported and what formats are not. Supported formats must be added to the testing and the patch do it. 1. https://datatracker.ietf.org/doc/html/rfc3339 2. https://ijmacd.github.io/rfc3339-iso8601/ 3. tarantool/doc#3155 Needed for tarantool/doc#3155 Co-authored-by: Sergey Kaplun <[email protected]> NO_CHANGELOG=testing NO_DOC=tarantoolgh-3155
ligurio
added a commit
that referenced
this issue
Aug 12, 2024
ligurio
added a commit
that referenced
this issue
Aug 12, 2024
ligurio
added a commit
that referenced
this issue
Aug 12, 2024
andreyaksenov
pushed a commit
that referenced
this issue
Aug 12, 2024
ligurio
added a commit
to ligurio/tarantool
that referenced
this issue
Aug 13, 2024
The commit 3c40366 ("datetime, lua: date parsing functions") introduced a function `datetime.parse()`. The function accepts a datetime format: 'iso8601', 'rfc3339' and a custom datetime format. However, 'iso8601' as well as 'rfc3339' is a set of datetime formats (see [1] and [2]), and `datetime.parse()` supports a subset of these formats. There is a documentation issue [3], where we should describe what formats are supported and what formats are not. Supported formats must be added to the testing and the patch do it. 1. https://datatracker.ietf.org/doc/html/rfc3339 2. https://ijmacd.github.io/rfc3339-iso8601/ 3. tarantool/doc#3155 Needed for tarantool/doc#3155 Co-authored-by: Sergey Kaplun <[email protected]> NO_CHANGELOG=testing NO_DOC=tarantool/doc#3155
ligurio
added a commit
to ligurio/tarantool
that referenced
this issue
Aug 13, 2024
The commit 3c40366 ("datetime, lua: date parsing functions") introduced a function `datetime.parse()`. The function accepts a datetime format: 'iso8601', 'rfc3339' and a custom datetime format. However, 'iso8601' as well as 'rfc3339' is a set of datetime formats (see [1] and [2]), and `datetime.parse()` supports a subset of these formats. There is a documentation issue [3], where we should describe what formats are supported and what formats are not. The patch adds a tests for most of supported formats. The tests were created using a page about date and time formats in ISO 8601 and RFC 3339 standards [2] and these tests are not exhaustive. More thorough testing can be done with property-based testing and randomization. It will be a subject of the following commits. 1. https://datatracker.ietf.org/doc/html/rfc3339 2. https://ijmacd.github.io/rfc3339-iso8601/ 3. tarantool/doc#3155 Follows up tarantool#6731 Needed for tarantool/doc#3155 Co-authored-by: Sergey Kaplun <[email protected]> NO_CHANGELOG=testing NO_DOC=tarantool/doc#3155
ligurio
added a commit
to ligurio/tarantool
that referenced
this issue
Aug 13, 2024
The commit 3c40366 ("datetime, lua: date parsing functions") introduced a function `datetime.parse()`. The function accepts a datetime format: 'iso8601', 'rfc3339' and a custom datetime format. However, 'iso8601' as well as 'rfc3339' is a set of datetime formats (see [1] and [2]), and `datetime.parse()` supports a subset of these formats. There is a documentation issue [3], where we should describe what formats are supported and what formats are not. The patch adds a tests for most of supported formats. The tests were created using a page about date and time formats in ISO 8601 and RFC 3339 standards [2] and these tests are not exhaustive. More thorough testing can be done with property-based testing and randomization. It will be a subject of the following commits. 1. https://datatracker.ietf.org/doc/html/rfc3339 2. https://ijmacd.github.io/rfc3339-iso8601/ 3. tarantool/doc#3155 Follows up tarantool#6731 Needed for tarantool/doc#3155 Co-authored-by: Sergey Kaplun <[email protected]> NO_CHANGELOG=testing NO_DOC=tarantool/doc#3155
Buristan
pushed a commit
to tarantool/tarantool
that referenced
this issue
Aug 14, 2024
The commit 3c40366 ("datetime, lua: date parsing functions") introduced a function `datetime.parse()`. The function accepts a datetime format: 'iso8601', 'rfc3339' and a custom datetime format. However, 'iso8601' as well as 'rfc3339' is a set of datetime formats (see [1] and [2]), and `datetime.parse()` supports a subset of these formats. There is a documentation issue [3], where we should describe what formats are supported and what formats are not. The patch adds a tests for most of supported formats. The tests were created using a page about date and time formats in ISO 8601 and RFC 3339 standards [2] and these tests are not exhaustive. More thorough testing can be done with property-based testing and randomization. It will be a subject of the following commits. 1. https://datatracker.ietf.org/doc/html/rfc3339 2. https://ijmacd.github.io/rfc3339-iso8601/ 3. tarantool/doc#3155 Follows up #6731 Needed for tarantool/doc#3155 Co-authored-by: Sergey Kaplun <[email protected]> NO_CHANGELOG=testing NO_DOC=tarantool/doc#3155
ligurio
added a commit
to ligurio/tarantool
that referenced
this issue
Aug 14, 2024
The commit 3c40366 ("datetime, lua: date parsing functions") introduced a function `datetime.parse()`. The function accepts a datetime format: 'iso8601', 'rfc3339' and a custom datetime format. However, 'iso8601' as well as 'rfc3339' is a set of datetime formats (see [1] and [2]), and `datetime.parse()` supports a subset of these formats. There is a documentation issue [3], where we should describe what formats are supported and what formats are not. The patch adds a tests for most of supported formats. The tests were created using a page about date and time formats in ISO 8601 and RFC 3339 standards [2] and these tests are not exhaustive. More thorough testing can be done with property-based testing and randomization. It will be a subject of the following commits. 1. https://datatracker.ietf.org/doc/html/rfc3339 2. https://ijmacd.github.io/rfc3339-iso8601/ 3. tarantool/doc#3155 Follows up tarantool#6731 Needed for tarantool/doc#3155 Co-authored-by: Sergey Kaplun <[email protected]> NO_CHANGELOG=testing NO_DOC=tarantool/doc#3155 (cherry picked from commit dcb1963)
ligurio
added a commit
to ligurio/tarantool
that referenced
this issue
Aug 14, 2024
The commit 3c40366 ("datetime, lua: date parsing functions") introduced a function `datetime.parse()`. The function accepts a datetime format: 'iso8601', 'rfc3339' and a custom datetime format. However, 'iso8601' as well as 'rfc3339' is a set of datetime formats (see [1] and [2]), and `datetime.parse()` supports a subset of these formats. There is a documentation issue [3], where we should describe what formats are supported and what formats are not. The patch adds a tests for most of supported formats. The tests were created using a page about date and time formats in ISO 8601 and RFC 3339 standards [2] and these tests are not exhaustive. More thorough testing can be done with property-based testing and randomization. It will be a subject of the following commits. 1. https://datatracker.ietf.org/doc/html/rfc3339 2. https://ijmacd.github.io/rfc3339-iso8601/ 3. tarantool/doc#3155 Follows up tarantool#6731 Needed for tarantool/doc#3155 Co-authored-by: Sergey Kaplun <[email protected]> NO_CHANGELOG=testing NO_DOC=tarantool/doc#3155 (cherry picked from commit dcb1963)
Buristan
pushed a commit
to tarantool/tarantool
that referenced
this issue
Aug 15, 2024
The commit 3c40366 ("datetime, lua: date parsing functions") introduced a function `datetime.parse()`. The function accepts a datetime format: 'iso8601', 'rfc3339' and a custom datetime format. However, 'iso8601' as well as 'rfc3339' is a set of datetime formats (see [1] and [2]), and `datetime.parse()` supports a subset of these formats. There is a documentation issue [3], where we should describe what formats are supported and what formats are not. The patch adds a tests for most of supported formats. The tests were created using a page about date and time formats in ISO 8601 and RFC 3339 standards [2] and these tests are not exhaustive. More thorough testing can be done with property-based testing and randomization. It will be a subject of the following commits. 1. https://datatracker.ietf.org/doc/html/rfc3339 2. https://ijmacd.github.io/rfc3339-iso8601/ 3. tarantool/doc#3155 Follows up #6731 Needed for tarantool/doc#3155 Co-authored-by: Sergey Kaplun <[email protected]> NO_CHANGELOG=testing NO_DOC=tarantool/doc#3155 (cherry picked from commit dcb1963)
Buristan
pushed a commit
to tarantool/tarantool
that referenced
this issue
Aug 15, 2024
The commit 3c40366 ("datetime, lua: date parsing functions") introduced a function `datetime.parse()`. The function accepts a datetime format: 'iso8601', 'rfc3339' and a custom datetime format. However, 'iso8601' as well as 'rfc3339' is a set of datetime formats (see [1] and [2]), and `datetime.parse()` supports a subset of these formats. There is a documentation issue [3], where we should describe what formats are supported and what formats are not. The patch adds a tests for most of supported formats. The tests were created using a page about date and time formats in ISO 8601 and RFC 3339 standards [2] and these tests are not exhaustive. More thorough testing can be done with property-based testing and randomization. It will be a subject of the following commits. 1. https://datatracker.ietf.org/doc/html/rfc3339 2. https://ijmacd.github.io/rfc3339-iso8601/ 3. tarantool/doc#3155 Follows up #6731 Needed for tarantool/doc#3155 Co-authored-by: Sergey Kaplun <[email protected]> NO_CHANGELOG=testing NO_DOC=tarantool/doc#3155 (cherry picked from commit dcb1963)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Related dev. issue(s): https://github.com/tarantool/tarantool/pull/6731/files#r829826291
Product: Tarantool
Since: 2.10
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/datetime/datetime_object/#datetime-parse
SME: @ tsafin @ ligurio
Details
https://www.tarantool.io/en/doc/latest/reference/reference_lua/datetime/datetime_object/#datetime-parse
We don't support all possible iso8601 formats, see discussion in https://github.com/tarantool/tarantool/pull/6731/files#r829826291
Definition of done
The text was updated successfully, but these errors were encountered: