ClickHouse/tests/queries/0_stateless/01702_toDateTime_from_string_clamping.reference

10 lines
341 B
Plaintext
Raw Normal View History

-- { echo }
SELECT toString(toDateTime('-922337203.6854775808', 1));
2021-02-27 11:21:31 +00:00
1940-10-09 22:13:17.6
SELECT toString(toDateTime('9922337203.6854775808', 1));
2021-03-07 06:31:01 +00:00
1925-07-26 23:46:43.6
SELECT toDateTime64(CAST('10000000000.1' AS Decimal64(1)), 1);
2021-03-07 06:31:01 +00:00
1928-01-11 23:46:40.1
SELECT toDateTime64(CAST('-10000000000.1' AS Decimal64(1)), 1);
2021-03-07 06:31:01 +00:00
2011-12-22 23:38:20.1