ClickHouse/tests/queries/0_stateless/01691_DateTime64_clamp.reference

10 lines
243 B
Plaintext
Raw Normal View History

-- { 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