Simplify date parsing (#195)

Create common functions parse_date, parse_month_year_date and parse_datetime.

Those functions support trying multiple formats, and come with default formats lists that support most of the date format encountered so far.

Notable change: year-month dates are now set to the end of month (impacted couchbase-server and ibm-aix).
This commit is contained in:
Marc Wrobel
2023-11-26 21:01:35 +01:00
committed by GitHub
parent 1e65a048b0
commit 0d17306872
24 changed files with 133 additions and 168 deletions

View File

@@ -1,22 +1,22 @@
{
"7.2.3": "2023-11-15",
"7.1.6": "2023-11-15",
"7.2.2": "2023-09-15",
"7.2.1": "2023-09-15",
"7.1.5": "2023-08-15",
"7.2.3": "2023-11-30",
"7.1.6": "2023-11-30",
"7.2.2": "2023-09-30",
"7.2.1": "2023-09-30",
"7.1.5": "2023-08-31",
"7.2.0": "2023-06-01",
"7.1.4": "2023-03-15",
"7.0.5": "2022-12-15",
"7.1.3": "2022-11-15",
"7.1.2": "2022-10-15",
"7.1.1": "2022-07-15",
"7.0.4": "2022-06-15",
"7.1.0": "2022-05-15",
"6.6.5": "2022-01-15",
"7.0.3": "2021-12-15",
"7.0.2": "2021-10-15",
"7.0.1": "2021-09-15",
"7.0.0": "2021-07-15",
"7.1.4": "2023-03-31",
"7.0.5": "2022-12-31",
"7.1.3": "2022-11-30",
"7.1.2": "2022-10-31",
"7.1.1": "2022-07-31",
"7.0.4": "2022-06-30",
"7.1.0": "2022-05-31",
"6.6.5": "2022-01-31",
"7.0.3": "2021-12-31",
"7.0.2": "2021-10-31",
"7.0.1": "2021-09-30",
"7.0.0": "2021-07-31",
"6.6.0": "2020-08-12",
"6.0.1": "2019-02-15",
"6.0.0": "2018-10-31"