|
3 | 3 | """
|
4 | 4 |
|
5 | 5 | import math
|
6 |
| -from datetime import UTC, datetime, timedelta, timezone |
| 6 | +from datetime import UTC, datetime, timedelta |
7 | 7 |
|
8 | 8 |
|
9 | 9 | def gauss_easter(year: int) -> datetime:
|
10 | 10 | """
|
11 | 11 | Calculation Gregorian easter date for given year
|
12 | 12 |
|
13 | 13 | >>> gauss_easter(2007)
|
14 |
| - datetime.datetime(2007, 4, 8, 0, 0, tzinfo=timezone.utc) |
| 14 | + datetime.datetime(2007, 4, 8, 0, 0, tzinfo=datetime.timezone.utc) |
15 | 15 |
|
16 | 16 | >>> gauss_easter(2008)
|
17 |
| - datetime.datetime(2008, 3, 23, 0, 0, tzinfo=timezone.utc) |
| 17 | + datetime.datetime(2008, 3, 23, 0, 0, tzinfo=datetime.timezone.utc) |
18 | 18 |
|
19 | 19 | >>> gauss_easter(2020)
|
20 |
| - datetime.datetime(2020, 4, 12, 0, 0, tzinfo=timezone.utc) |
| 20 | + datetime.datetime(2020, 4, 12, 0, 0, tzinfo=datetime.imezone.utc) |
21 | 21 |
|
22 | 22 | >>> gauss_easter(2021)
|
23 |
| - datetime.datetime(2021, 4, 4, 0, 0, tzinfo=timezone.utc) |
| 23 | + datetime.datetime(2021, 4, 4, 0, 0, tzinfo=datetime.timezone.utc) |
24 | 24 | """
|
25 | 25 | metonic_cycle = year % 19
|
26 | 26 | julian_leap_year = year % 4
|
|
0 commit comments