ClickHouse/tests/queries/0_stateless/02096_date_time_1970_saturation.sql
2022-05-27 03:04:42 +03:00

31 lines
1.5 KiB
SQL

select toDate(0);
select toDateTime(0, 'Asia/Istanbul');
select toMonday(toDate(0));
select toMonday(toDateTime(0, 'Asia/Istanbul'));
select toStartOfWeek(toDate(0));
select toStartOfWeek(toDateTime(0, 'Asia/Istanbul'));
select toStartOfMonth(toDate(0));
select toStartOfMonth(toDateTime(0, 'Asia/Istanbul'));
select toStartOfQuarter(toDate(0));
select toStartOfQuarter(toDateTime(0, 'Asia/Istanbul'));
select toStartOfYear(toDate(0));
select toStartOfYear(toDateTime(0, 'Asia/Istanbul'));
select toTime(toDateTime(0, 'Asia/Istanbul'));
select toStartOfMinute(toDateTime(0, 'Asia/Istanbul'));
select toStartOfFiveMinutes(toDateTime(0, 'Asia/Istanbul'));
select toStartOfTenMinutes(toDateTime(0, 'Asia/Istanbul'));
select toStartOfFifteenMinutes(toDateTime(0, 'Asia/Istanbul'));
select toStartOfHour(toDateTime(0, 'Asia/Istanbul'));
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'));
select toStartOfTenMinutes(toDateTime(0, 'America/Los_Angeles'));
select toStartOfFifteenMinutes(toDateTime(0, 'America/Los_Angeles'));
select toStartOfHour(toDateTime(0, 'America/Los_Angeles'));