feedback: Module datetime | Tarantool
Open
@andreyaksenov is already working on this.
Since Aug 23, 2024.
- Dominant language
- CSS
- Stars
- 15
- Forks
- 49
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 3
Description
<…> is a datetime object; otherwise, false
Return **type:boolean|
datetime.parse|**('input_string'[, {format, tzoffset}])
Convert an input string w<…>
https://www.tarantool.io/en/doc/latest/reference/reference_lua/datetime/#datetime-parse
Module datetime exports a function parse_date ^1 implemented in #6731, however this function is not documented and there was no mention of it in doc requests.
The function's description:
+ Parse partial ISO-8601 date string
+
+ Accepted formats are:
+
+ Basic Extended
+ 20121224 2012-12-24 Calendar date (ISO 8601)
+ 2012359 2012-359 Ordinal date (ISO 8601)
+ 2012W521 2012-W52-1 Week date (ISO 8601)
+ 2012Q485 2012-Q4-85 Quarter date
+
+ Returns pair of constructed datetime object, and length of string
+ which has been accepted by parser.
Relevant commits
- 3c40366172e3091cb454079cb72b68eff96b8ed3
- 9bc059bb3fd9c7b3ce31ee062224a1f16cf6b5c3
PR comment
https://github.com/tarantool/tarantool/pull/6731#pullrequestreview-850777717
Contributor guide
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.
Assessment
This issue has not been assessed yet.