mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
32 lines
1.5 KiB
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 toStartOfFiveMinute(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 toStartOfFiveMinute(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'));
|