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

32 lines
1.5 KiB
SQL

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