Skip to content

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

Closed
1 task
TarantoolBot opened this issue Sep 19, 2022 · 1 comment · Fixed by #4426
Closed
1 task

datetime_object: specify supported iso8601 formats #3155

TarantoolBot opened this issue Sep 19, 2022 · 1 comment · Fixed by #4426
Labels
2.10 datetime reference [location] Tarantool manual, Reference part

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Sep 19, 2022

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

<…>ime information.
format (string) – indicator of the input_sting |format|. Possible values: ‘iso8601’, ‘rfc3339’, or strptime-like format<…>

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 reference contains clear and precise information about supported datetime formats
@p7nov p7nov added this to the Estimate [@p7nov] milestone Sep 22, 2022
@p7nov p7nov added 2sp datetime reference [location] Tarantool manual, Reference part labels Sep 22, 2022
@p7nov p7nov changed the title feedback: datetime_object | Tarantool datetime_object: specify supported iso8601 formats Sep 22, 2022
@p7nov p7nov added 3sp 2.10 and removed 2sp labels Sep 22, 2022
@p7nov p7nov removed this from the Estimate [@p7nov] milestone Sep 22, 2022
@veod32 veod32 removed the 3sp label Dec 9, 2022
@ligurio
Copy link
Member

ligurio commented Jul 31, 2024

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
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
Labels
2.10 datetime reference [location] Tarantool manual, Reference part
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants