Commit 610ca2e
committed
Temporal types: improvements around tzinfo (neo4j#1104)
* Docs:
* clearly state that our temporal types are meant to be paired with `pytz`
and `pytz` only.
* remove outdated remark on time zone support
* Code: improve compatibility of `DateTime.now`, `.dst`, and `.tzname` with
other `tzinfo` implementations.
**IMPORTANT**: those implementations are still not, and will not be fully
supported.1 parent 380c70c commit 610ca2e
File tree
4 files changed
+84
-37
lines changed- docs/source
- types
- src/neo4j/time
- tests/unit/common/time
4 files changed
+84
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
358 | 359 | | |
359 | 360 | | |
360 | 361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1487 | 1487 | | |
1488 | 1488 | | |
1489 | 1489 | | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
1490 | 1527 | | |
1491 | 1528 | | |
1492 | 1529 | | |
| |||
1996 | 2033 | | |
1997 | 2034 | | |
1998 | 2035 | | |
1999 | | - | |
2000 | | - | |
2001 | | - | |
2002 | | - | |
2003 | | - | |
2004 | | - | |
2005 | | - | |
2006 | | - | |
2007 | | - | |
2008 | | - | |
2009 | | - | |
2010 | | - | |
2011 | | - | |
2012 | | - | |
2013 | | - | |
2014 | | - | |
2015 | | - | |
| 2036 | + | |
2016 | 2037 | | |
2017 | 2038 | | |
2018 | 2039 | | |
| |||
2021 | 2042 | | |
2022 | 2043 | | |
2023 | 2044 | | |
2024 | | - | |
2025 | | - | |
2026 | | - | |
2027 | | - | |
2028 | | - | |
2029 | | - | |
2030 | | - | |
2031 | | - | |
| 2045 | + | |
2032 | 2046 | | |
2033 | 2047 | | |
2034 | 2048 | | |
| |||
2202 | 2216 | | |
2203 | 2217 | | |
2204 | 2218 | | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
2205 | 2222 | | |
2206 | | - | |
2207 | | - | |
2208 | | - | |
2209 | | - | |
2210 | | - | |
| 2223 | + | |
2211 | 2224 | | |
2212 | 2225 | | |
2213 | 2226 | | |
2214 | | - | |
2215 | 2227 | | |
2216 | 2228 | | |
2217 | 2229 | | |
| |||
2809 | 2821 | | |
2810 | 2822 | | |
2811 | 2823 | | |
2812 | | - | |
| 2824 | + | |
2813 | 2825 | | |
2814 | 2826 | | |
2815 | 2827 | | |
2816 | 2828 | | |
2817 | 2829 | | |
2818 | 2830 | | |
2819 | 2831 | | |
2820 | | - | |
| 2832 | + | |
2821 | 2833 | | |
2822 | 2834 | | |
2823 | 2835 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
183 | 216 | | |
184 | 217 | | |
185 | 218 | | |
| |||
0 commit comments