Commit 73136ea
Impl time crate into pyo3 (#5057)
* First draft for implementing time crate into PyO3
* Refactor FromPyObject for PrimitiveDateTime. Disable proptest
* Refactor FromPyObject for OffsetDateTime and UtcDateTime
* Create extract_date_time function for reusable code
* Fix all proptests
* Fix doc test
* Add changelog
* Downgrade time crate version for msrv. Fix clippy error
* Remove UtcDateTime
* Fix fmt CI failure
* Bring back UtcDateTime. Bump time crate to 0.3.38. Add features doc.
* Add time feature to noxfile
* use timezone_utc. add const SECONDS_PER_DAY. Revise doc example
* Fix FromPyObject for UtcDateTime
* `intern` only used on limited api
---------
Co-authored-by: Icxolu <10486322+Icxolu@users.noreply.github.com>1 parent 7d166f7 commit 73136ea
File tree
7 files changed
+1535
-5
lines changed- guide/src
- newsfragments
- src
- conversions
- types
7 files changed
+1535
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
187 | 198 | | |
188 | 199 | | |
189 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
432 | 436 | | |
433 | 437 | | |
434 | 438 | | |
| |||
819 | 823 | | |
820 | 824 | | |
821 | 825 | | |
822 | | - | |
823 | | - | |
| 826 | + | |
| 827 | + | |
824 | 828 | | |
825 | 829 | | |
826 | 830 | | |
| |||
891 | 895 | | |
892 | 896 | | |
893 | 897 | | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
894 | 902 | | |
895 | 903 | | |
896 | 904 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
0 commit comments