More tests

This commit is contained in:
Alexey Milovidov 2019-04-12 02:25:50 +03:00
parent 1610bcca89
commit 7892edc490
2 changed files with 18 additions and 1 deletions

View File

@ -13,3 +13,18 @@
1970-01-13 3 1970
1970-01-14 3 1970
1970-01-15 3 1970
1970-01-02 00:00:00 1 1970
1970-01-03 00:00:00 1 1970
1970-01-04 00:00:00 1 1970
1970-01-05 00:00:00 2 1970
1970-01-06 00:00:00 2 1970
1970-01-07 00:00:00 2 1970
1970-01-08 00:00:00 2 1970
1970-01-09 00:00:00 2 1970
1970-01-10 00:00:00 2 1970
1970-01-11 00:00:00 2 1970
1970-01-12 00:00:00 3 1970
1970-01-13 00:00:00 3 1970
1970-01-14 00:00:00 3 1970
1970-01-15 00:00:00 3 1970
1970-01-16 00:00:00 3 1970

View File

@ -1 +1,3 @@
SELECT toDate('1970-01-01') + number AS d, toISOWeek(d), toISOYear(d) FROM numbers(15);
SELECT toDate('1970-01-01') + number AS d, toISOWeek(d), toISOYear(d) FROM numbers(15);
-- Note that 1970-01-01 00:00:00 in Moscow is before unix epoch.
SELECT toDateTime(toDate('1970-01-02') + number, 'Europe/Moscow') AS t, toISOWeek(t), toISOYear(t) FROM numbers(15);