ClickHouse/docs/en/sql-reference/functions
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
..
geo
_category_.yml
arithmetic-functions.md
array-functions.md
array-join.md
bit-functions.md
bitmap-functions.md
comparison-functions.md
conditional-functions.md
date-time-functions.md Add ability to parse hours/months without leading zeros 2023-11-26 19:10:17 +01:00
distance-functions.md
encoding-functions.md
encryption-functions.md
ext-dict-functions.md
files.md
functions-for-nulls.md
hash-functions.md
in-functions.md
index.md
introspection.md
ip-address-functions.md
json-functions.md
logical-functions.md
machine-learning-functions.md
math-functions.md
nlp-functions.md
other-functions.md
random-functions.md
rounding-functions.md
splitting-merging-functions.md
string-functions.md
string-replace-functions.md
string-search-functions.md
time-series-functions.md
time-window-functions.md
tuple-functions.md
tuple-map-functions.md
type-conversion-functions.md
udf.md
ulid-functions.md
uniqtheta-functions.md
url-functions.md
uuid-functions.md
ym-dict-functions.md