2021-04-09 12:51:09 +00:00
|
|
|
-- { echo }
|
|
|
|
|
2022-03-11 23:45:26 +00:00
|
|
|
SELECT formatDateTime(toDateTime64('1935-12-12 12:12:12', 0, 'Asia/Istanbul'), '%C');
|
2021-04-09 12:51:09 +00:00
|
|
|
19
|
2022-03-11 23:45:26 +00:00
|
|
|
SELECT formatDateTime(toDateTime64('1969-12-12 12:12:12', 0, 'Asia/Istanbul'), '%C');
|
2021-04-09 12:51:09 +00:00
|
|
|
19
|
2022-03-11 23:45:26 +00:00
|
|
|
SELECT formatDateTime(toDateTime64('1989-12-12 12:12:12', 0, 'Asia/Istanbul'), '%C');
|
2021-04-09 12:51:09 +00:00
|
|
|
19
|
2022-03-11 23:45:26 +00:00
|
|
|
SELECT formatDateTime(toDateTime64('2019-09-16 19:20:12', 0, 'Asia/Istanbul'), '%C');
|
2021-04-09 12:51:09 +00:00
|
|
|
20
|
2022-03-11 23:45:26 +00:00
|
|
|
SELECT formatDateTime(toDateTime64('2105-12-12 12:12:12', 0, 'Asia/Istanbul'), '%C');
|
2021-04-09 12:51:09 +00:00
|
|
|
21
|
2022-03-11 23:45:26 +00:00
|
|
|
SELECT formatDateTime(toDateTime64('2205-12-12 12:12:12', 0, 'Asia/Istanbul'), '%C');
|
2021-04-09 12:51:09 +00:00
|
|
|
22
|
|
|
|
-- non-zero scale
|
2022-03-11 23:45:26 +00:00
|
|
|
SELECT formatDateTime(toDateTime64('1935-12-12 12:12:12', 6, 'Asia/Istanbul'), '%C');
|
2021-04-09 12:51:09 +00:00
|
|
|
19
|
2022-03-11 23:45:26 +00:00
|
|
|
SELECT formatDateTime(toDateTime64('1969-12-12 12:12:12', 6, 'Asia/Istanbul'), '%C');
|
2021-04-09 12:51:09 +00:00
|
|
|
19
|
2022-03-11 23:45:26 +00:00
|
|
|
SELECT formatDateTime(toDateTime64('1989-12-12 12:12:12', 6, 'Asia/Istanbul'), '%C');
|
2021-04-09 12:51:09 +00:00
|
|
|
19
|
2022-03-11 23:45:26 +00:00
|
|
|
SELECT formatDateTime(toDateTime64('2019-09-16 19:20:12', 0, 'Asia/Istanbul'), '%C');
|
2021-04-09 12:51:09 +00:00
|
|
|
20
|
2022-03-11 23:45:26 +00:00
|
|
|
SELECT formatDateTime(toDateTime64('2105-12-12 12:12:12', 6, 'Asia/Istanbul'), '%C');
|
2021-04-09 12:51:09 +00:00
|
|
|
21
|
2022-03-11 23:45:26 +00:00
|
|
|
SELECT formatDateTime(toDateTime64('2205-01-12 12:12:12', 6, 'Asia/Istanbul'), '%C');
|
2021-04-09 16:22:53 +00:00
|
|
|
22
|