ClickHouse/tests/queries/0_stateless/02096_date_time_1970_saturation2.sql
Amos Bird e81929a8b5
Saturate date/datetime to zero (part 2)
For partial hours/minutes timezones.
2022-04-29 10:24:18 +08:00

28 lines
1.5 KiB
SQL

-- America/Paramaribo : partial hours timezones
select toDateTime(0, 'America/Paramaribo');
select toMonday(toDateTime(0, 'America/Paramaribo'));
select toStartOfWeek(toDateTime(0, 'America/Paramaribo'));
select toStartOfMonth(toDateTime(0, 'America/Paramaribo'));
select toStartOfQuarter(toDateTime(0, 'America/Paramaribo'));
select toStartOfYear(toDateTime(0, 'America/Paramaribo'));
select toTime(toDateTime(0, 'America/Paramaribo'), 'America/Paramaribo');
select toStartOfMinute(toDateTime(0, 'America/Paramaribo'));
select toStartOfFiveMinute(toDateTime(0, 'America/Paramaribo'));
select toStartOfTenMinutes(toDateTime(0, 'America/Paramaribo'));
select toStartOfFifteenMinutes(toDateTime(0, 'America/Paramaribo'));
select toStartOfHour(toDateTime(0, 'America/Paramaribo'));
-- Africa/Monrovia : partial minutes timezones
select toDateTime(0, 'Africa/Monrovia');
select toMonday(toDateTime(0, 'Africa/Monrovia'));
select toStartOfWeek(toDateTime(0, 'Africa/Monrovia'));
select toStartOfMonth(toDateTime(0, 'Africa/Monrovia'));
select toStartOfQuarter(toDateTime(0, 'Africa/Monrovia'));
select toStartOfYear(toDateTime(0, 'Africa/Monrovia'));
select toTime(toDateTime(0, 'Africa/Monrovia'), 'Africa/Monrovia');
select toStartOfMinute(toDateTime(0, 'Africa/Monrovia'));
select toStartOfFiveMinute(toDateTime(0, 'Africa/Monrovia'));
select toStartOfTenMinutes(toDateTime(0, 'Africa/Monrovia'));
select toStartOfFifteenMinutes(toDateTime(0, 'Africa/Monrovia'));
select toStartOfHour(toDateTime(0, 'Africa/Monrovia'));