mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 12:32:04 +00:00
12 lines
320 B
Plaintext
12 lines
320 B
Plaintext
-- { echo }
|
|
SELECT toDateTime(-2, 2);
|
|
1970-01-01 03:00:00.00
|
|
SELECT toDateTime64(-2, 2);
|
|
1970-01-01 03:00:00.00
|
|
SELECT CAST(-1 AS DateTime64);
|
|
1970-01-01 03:00:00.000
|
|
SELECT CAST('2020-01-01 00:00:00.3' AS DateTime64);
|
|
2020-01-01 00:00:00.300
|
|
SELECT toDateTime64(bitShiftLeft(toUInt64(1),33), 2);
|
|
2106-02-07 09:28:15.00
|