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-08 00:14:39 +00:00
2283-11-11 23:46:43.6
SELECT toDateTime64(CAST('10000000000.1' AS Decimal64(1)), 1);
2021-03-08 00:14:39 +00:00
2283-11-11 23:46:40.1
SELECT toDateTime64(CAST('-10000000000.1' AS Decimal64(1)), 1);
2021-03-15 20:29:35 +00:00
1925-01-01 00:00:00.1