mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
18 lines
752 B
Plaintext
18 lines
752 B
Plaintext
-- { echo }
|
|
SELECT toTimeZone(toDateTime(-2, 2), 'Europe/Moscow');
|
|
1970-01-01 03:00:00.00
|
|
SELECT toDateTime64(-2, 2, 'Europe/Moscow');
|
|
1970-01-01 03:00:00.00
|
|
SELECT CAST(-1 AS DateTime64(0, 'Europe/Moscow'));
|
|
1970-01-01 03:00:00
|
|
SELECT CAST('2020-01-01 00:00:00.3' AS DateTime64(0, 'Europe/Moscow'));
|
|
2020-01-01 00:00:00
|
|
SELECT toDateTime64(bitShiftLeft(toUInt64(1), 33), 2, 'Europe/Moscow') FORMAT Null;
|
|
SELECT toTimeZone(toDateTime(-2., 2), 'Europe/Moscow');
|
|
1970-01-01 03:00:00.00
|
|
SELECT toDateTime64(-2., 2, 'Europe/Moscow');
|
|
1970-01-01 03:00:00.00
|
|
SELECT toDateTime64(toFloat32(bitShiftLeft(toUInt64(1),33)), 2, 'Europe/Moscow');
|
|
2106-02-07 09:00:00.00
|
|
SELECT toDateTime64(toFloat64(bitShiftLeft(toUInt64(1),33)), 2, 'Europe/Moscow') FORMAT Null;
|