ClickHouse/tests/queries/0_stateless/02096_date_time_1970_saturation.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
1.5 KiB
MySQL
Raw Normal View History

2021-11-08 07:19:31 +00:00
select toDate(0);
2022-03-11 23:45:26 +00:00
select toDateTime(0, 'Asia/Istanbul');
2021-11-08 07:19:31 +00:00
select toMonday(toDate(0));
2022-03-11 23:45:26 +00:00
select toMonday(toDateTime(0, 'Asia/Istanbul'));
2021-11-08 07:19:31 +00:00
select toStartOfWeek(toDate(0));
2022-03-11 23:45:26 +00:00
select toStartOfWeek(toDateTime(0, 'Asia/Istanbul'));
2021-11-08 07:19:31 +00:00
select toStartOfMonth(toDate(0));
2022-03-11 23:45:26 +00:00
select toStartOfMonth(toDateTime(0, 'Asia/Istanbul'));
2021-11-08 07:19:31 +00:00
select toStartOfQuarter(toDate(0));
2022-03-11 23:45:26 +00:00
select toStartOfQuarter(toDateTime(0, 'Asia/Istanbul'));
2021-11-08 07:19:31 +00:00
select toStartOfYear(toDate(0));
2022-03-11 23:45:26 +00:00
select toStartOfYear(toDateTime(0, 'Asia/Istanbul'));
select toTime(toDateTime(0, 'Asia/Istanbul'));
select toStartOfMinute(toDateTime(0, 'Asia/Istanbul'));
select toStartOfFiveMinutes(toDateTime(0, 'Asia/Istanbul'));
2022-03-11 23:45:26 +00:00
select toStartOfTenMinutes(toDateTime(0, 'Asia/Istanbul'));
select toStartOfFifteenMinutes(toDateTime(0, 'Asia/Istanbul'));
select toStartOfHour(toDateTime(0, 'Asia/Istanbul'));
2021-11-08 07:19:31 +00:00
select toDateTime(0, 'America/Los_Angeles');
select toMonday(toDateTime(0, 'America/Los_Angeles'));
select toStartOfWeek(toDateTime(0, 'America/Los_Angeles'));
select toStartOfMonth(toDateTime(0, 'America/Los_Angeles'));
select toStartOfQuarter(toDateTime(0, 'America/Los_Angeles'));
select toStartOfYear(toDateTime(0, 'America/Los_Angeles'));
select toTime(toDateTime(0, 'America/Los_Angeles'), 'America/Los_Angeles');
select toStartOfMinute(toDateTime(0, 'America/Los_Angeles'));
select toStartOfFiveMinutes(toDateTime(0, 'America/Los_Angeles'));
2021-11-08 07:19:31 +00:00
select toStartOfTenMinutes(toDateTime(0, 'America/Los_Angeles'));
select toStartOfFifteenMinutes(toDateTime(0, 'America/Los_Angeles'));
select toStartOfHour(toDateTime(0, 'America/Los_Angeles'));