ClickHouse/docs/en
Azat Khuzhin 315906b380 Add ability to parse hours/months without leading zeros
Recently I was looking into one dataset, that has such format.

So I've changed the meaning of the following formatters for
formatDateTime()/parseDateTime(), like in other implementations [1]:

- %l/%k - to handle hours without leading zeros
- %c - handle months without leading zeros

  [1]: https://www.php.net/strftime

And since this is kind of behaviour change (even though it is unlikely
will break something), there is a new setting to control this new
behaviour:
- parsedatetime_enable_format_without_leading_zeros=1 (default ON)
- formatdatetime_enable_format_without_leading_zeros=0 (default OFF, since this could change users output)

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-11-26 19:10:17 +01:00
..
development Docs: Update instructions to fetch the repo 2023-11-08 19:51:02 +00:00
engines Merge pull request #56959 from melvynator/master 2023-11-24 16:16:42 +01:00
getting-started Removes duplicated slugs in docs. 2023-11-09 12:41:39 -04:00
interfaces Merge pull request #56424 from yariks5s/npy_float_16 2023-11-16 17:00:24 +01:00
operations Merge pull request #54327 from den-crane/background_fetches_pool_size 2023-11-26 02:50:38 +01:00
sql-reference Add ability to parse hours/months without leading zeros 2023-11-26 19:10:17 +01:00