mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
39 lines
1.8 KiB
SQL
39 lines
1.8 KiB
SQL
select makeDateTime(1991, 8, 24, 21, 4, 0);
|
|
select makeDateTime(1991, 8, 24, 21, 4, 0, 'CET');
|
|
select cast(makeDateTime(1991, 8, 24, 21, 4, 0, 'CET') as DateTime('UTC'));
|
|
|
|
select toTypeName(makeDateTime(1991, 8, 24, 21, 4, 0));
|
|
select toTypeName(makeDateTime(1991, 8, 24, 21, 4, 0, 'CET'));
|
|
|
|
select makeDateTime(1925, 1, 1, 0, 0, 0, 'UTC');
|
|
select makeDateTime(1924, 12, 31, 23, 59, 59, 'UTC');
|
|
select makeDateTime(2283, 11, 11, 23, 59, 59, 'UTC');
|
|
select makeDateTime(2283, 11, 12, 0, 0, 0, 'UTC');
|
|
select makeDateTime(2262, 4, 11, 23, 47, 16, 'UTC');
|
|
select makeDateTime(2262, 4, 11, 23, 47, 17, 'UTC');
|
|
select makeDateTime(2262, 4, 11, 23, 47, 16, 'UTC');
|
|
|
|
select makeDateTime(1984, 0, 1, 0, 0, 0, 'UTC');
|
|
select makeDateTime(1984, 1, 0, 0, 0, 0, 'UTC');
|
|
select makeDateTime(1984, 13, 1, 0, 0, 0, 'UTC');
|
|
select makeDateTime(1984, 1, 41, 0, 0, 0, 'UTC');
|
|
select makeDateTime(1984, 1, 1, 25, 0, 0, 'UTC');
|
|
select makeDateTime(1984, 1, 1, 0, 70, 0, 'UTC');
|
|
select makeDateTime(1984, 1, 1, 0, 0, 70, 'UTC');
|
|
select makeDateTime(1984, 1, 1, 0, 0, 0, 'not a timezone'); -- { serverError 1000 }
|
|
|
|
select makeDateTime(1984, 1, 1, 0, 0, 0, 'UTC');
|
|
select makeDateTime(1983, 2, 29, 0, 0, 0, 'UTC');
|
|
select makeDateTime(-1984, 1, 1, 0, 0, 0, 'UTC');
|
|
select makeDateTime(1984, -1, 1, 0, 0, 0, 'UTC');
|
|
select makeDateTime(1984, 1, -1, 0, 0, 0, 'UTC');
|
|
select makeDateTime(1984, 1, 1, -1, 0, 0, 'UTC');
|
|
select makeDateTime(1984, 1, 1, 0, -1, 0, 'UTC');
|
|
select makeDateTime(1984, 1, 1, 0, 0, -1, 'UTC');
|
|
|
|
select makeDateTime(65537, 8, 24, 21, 4, 0, 'UTC');
|
|
select makeDateTime(1991, 65537, 24, 21, 4, 0, 'UTC');
|
|
select makeDateTime(1991, 8, 65537, 21, 4, 0, 'UTC');
|
|
select makeDateTime(1991, 8, 24, 65537, 4, 0, 'UTC');
|
|
select makeDateTime(1991, 8, 24, 21, 65537, 0, 'UTC');
|
|
select makeDateTime(1991, 8, 24, 21, 4, 65537, 'UTC'); |