mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
01099_operators_date_and_timestamp: Use dates that work with all available timezones
This commit is contained in:
parent
7f7bf9654b
commit
084e3da13f
@ -1,13 +1,13 @@
|
||||
1 1 1
|
||||
1 1 1
|
||||
1 1
|
||||
2001-09-28
|
||||
2001-10-05 Date
|
||||
2001-09-29
|
||||
2001-10-06 Date
|
||||
2001-09-24 Date
|
||||
2001-10-05 Date
|
||||
2001-10-06 Date
|
||||
2001-09-24 Date
|
||||
2001-09-28 01:00:00 DateTime
|
||||
2001-09-27 23:00:00 DateTime
|
||||
2001-09-29 01:00:00 DateTime
|
||||
2001-09-28 23:00:00 DateTime
|
||||
3 Int32
|
||||
2001-09-29 00:00:00
|
||||
2001-09-28 00:00:00
|
||||
|
@ -2,13 +2,13 @@ select interval 1 second, interval 1 minute, interval 1 hour;
|
||||
select interval 1 day, interval 1 week, interval 1 month;
|
||||
select interval 1 quarter, interval 1 year;
|
||||
|
||||
select date '2001-09-28';
|
||||
select (date '2001-09-28' + interval 7 day) x, toTypeName(x);
|
||||
select date '2001-09-29';
|
||||
select (date '2001-09-29' + interval 7 day) x, toTypeName(x);
|
||||
select (date '2001-10-01' - interval 7 day) x, toTypeName(x);
|
||||
select (date '2001-09-28' + 7) x, toTypeName(x);
|
||||
select (date '2001-09-29' + 7) x, toTypeName(x);
|
||||
select (date '2001-10-01' - 7) x, toTypeName(x);
|
||||
select (date '2001-09-28' + interval 1 hour) x, toTypeName(x);
|
||||
select (date '2001-09-28' - interval 1 hour) x, toTypeName(x);
|
||||
select (date '2001-09-29' + interval 1 hour) x, toTypeName(x);
|
||||
select (date '2001-09-29' - interval 1 hour) x, toTypeName(x);
|
||||
select (date '2001-10-01' - date '2001-09-28') x, toTypeName(x);
|
||||
select timestamp '2001-09-28 01:00:00' + interval 23 hour;
|
||||
select timestamp '2001-09-28 23:00:00' - interval 23 hour;
|
||||
|
Loading…
Reference in New Issue
Block a user