mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 14:11:58 +00:00
31 lines
1.5 KiB
SQL
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'));
|