mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
Integrated toStartOfWeekand and toLastDayOfWeek in 00189_time_zones_long
This commit is contained in:
parent
cf9954f17a
commit
570778dee0
@ -16,6 +16,34 @@ toMonday
|
||||
2014-12-29
|
||||
2014-12-22
|
||||
2014-12-29
|
||||
toStartOfWeek (Sunday)
|
||||
2014-12-28
|
||||
2014-12-28
|
||||
2014-12-28
|
||||
2014-12-28
|
||||
2014-12-28
|
||||
2014-12-28
|
||||
toStartOfWeek (Monday)
|
||||
2014-12-22
|
||||
2014-12-22
|
||||
2014-12-22
|
||||
2014-12-29
|
||||
2014-12-22
|
||||
2014-12-29
|
||||
toLastDayOfWeek (Sunday)
|
||||
2015-01-03
|
||||
2015-01-03
|
||||
2015-01-03
|
||||
2015-01-03
|
||||
2015-01-03
|
||||
2015-01-03
|
||||
toLastDayOfWeek (Monday)
|
||||
2014-12-28
|
||||
2014-12-28
|
||||
2014-12-28
|
||||
2015-01-04
|
||||
2014-12-28
|
||||
2015-01-04
|
||||
toStartOfMonth
|
||||
2014-12-01
|
||||
2014-12-01
|
||||
|
@ -36,6 +36,50 @@ SELECT toMonday(toDateTime(1419800400), 'Pacific/Pitcairn');
|
||||
SELECT toMonday(toDate(16433), 'Asia/Istanbul'); -- { serverError 43 }
|
||||
SELECT toMonday(toDate(16433));
|
||||
|
||||
/* toStartOfWeek (Sunday) */
|
||||
|
||||
SELECT 'toStartOfWeek (Sunday)';
|
||||
SELECT toStartOfWeek(toDateTime(1419800400), 0, 'Asia/Istanbul');
|
||||
SELECT toStartOfWeek(toDateTime(1419800400), 0, 'Europe/Paris');
|
||||
SELECT toStartOfWeek(toDateTime(1419800400), 0, 'Europe/London');
|
||||
SELECT toStartOfWeek(toDateTime(1419800400), 0, 'Asia/Tokyo');
|
||||
SELECT toStartOfWeek(toDateTime(1419800400), 0, 'Pacific/Pitcairn');
|
||||
SELECT toStartOfWeek(toDate(16433), 0, 'Asia/Istanbul'); -- { serverError 43 }
|
||||
SELECT toStartOfWeek(toDate(16433), 0);
|
||||
|
||||
/* toStartOfWeek (Monday) */
|
||||
|
||||
SELECT 'toStartOfWeek (Monday)';
|
||||
SELECT toStartOfWeek(toDateTime(1419800400), 1, 'Asia/Istanbul');
|
||||
SELECT toStartOfWeek(toDateTime(1419800400), 1, 'Europe/Paris');
|
||||
SELECT toStartOfWeek(toDateTime(1419800400), 1, 'Europe/London');
|
||||
SELECT toStartOfWeek(toDateTime(1419800400), 1, 'Asia/Tokyo');
|
||||
SELECT toStartOfWeek(toDateTime(1419800400), 1, 'Pacific/Pitcairn');
|
||||
SELECT toStartOfWeek(toDate(16433), 1, 'Asia/Istanbul'); -- { serverError 43 }
|
||||
SELECT toStartOfWeek(toDate(16433), 1);
|
||||
|
||||
/* toLastDayOfWeek (Sunday) */
|
||||
|
||||
SELECT 'toLastDayOfWeek (Sunday)';
|
||||
SELECT toLastDayOfWeek(toDateTime(1419800400), 0, 'Asia/Istanbul');
|
||||
SELECT toLastDayOfWeek(toDateTime(1419800400), 0, 'Europe/Paris');
|
||||
SELECT toLastDayOfWeek(toDateTime(1419800400), 0, 'Europe/London');
|
||||
SELECT toLastDayOfWeek(toDateTime(1419800400), 0, 'Asia/Tokyo');
|
||||
SELECT toLastDayOfWeek(toDateTime(1419800400), 0, 'Pacific/Pitcairn');
|
||||
SELECT toLastDayOfWeek(toDate(16433), 0, 'Asia/Istanbul'); -- { serverError 43 }
|
||||
SELECT toLastDayOfWeek(toDate(16433), 0);
|
||||
|
||||
/* toLastDayOfWeek (Monday) */
|
||||
|
||||
SELECT 'toLastDayOfWeek (Monday)';
|
||||
SELECT toLastDayOfWeek(toDateTime(1419800400), 1, 'Asia/Istanbul');
|
||||
SELECT toLastDayOfWeek(toDateTime(1419800400), 1, 'Europe/Paris');
|
||||
SELECT toLastDayOfWeek(toDateTime(1419800400), 1, 'Europe/London');
|
||||
SELECT toLastDayOfWeek(toDateTime(1419800400), 1, 'Asia/Tokyo');
|
||||
SELECT toLastDayOfWeek(toDateTime(1419800400), 1, 'Pacific/Pitcairn');
|
||||
SELECT toLastDayOfWeek(toDate(16433), 1, 'Asia/Istanbul'); -- { serverError 43 }
|
||||
SELECT toLastDayOfWeek(toDate(16433), 1);
|
||||
|
||||
/* toStartOfMonth */
|
||||
|
||||
SELECT 'toStartOfMonth';
|
||||
|
Loading…
Reference in New Issue
Block a user