Skip to content

Commit

Permalink
Merge pull request PyO3#3736 from Tpt/tpt/systemtime
Browse files Browse the repository at this point in the history
Adds conversion between SystemTime and datetime
  • Loading branch information
davidhewitt authored Feb 1, 2024
2 parents d35a6a1 + f835449 commit 5773554
Show file tree
Hide file tree
Showing 5 changed files with 377 additions and 198 deletions.
2 changes: 1 addition & 1 deletion guide/src/conversions/tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The table below contains the Python type and the corresponding function argument
| `type` | - | `&PyType` |
| `module` | - | `&PyModule` |
| `collections.abc.Buffer` | - | `PyBuffer<T>` |
| `datetime.datetime` | - | `&PyDateTime` |
| `datetime.datetime` | `SystemTime` | `&PyDateTime` |
| `datetime.date` | - | `&PyDate` |
| `datetime.time` | - | `&PyTime` |
| `datetime.tzinfo` | - | `&PyTzInfo` |
Expand Down
1 change: 1 addition & 0 deletions newsfragments/3736.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Conversion between `std::time::SystemTime` and `datetime.datetime`
196 changes: 0 additions & 196 deletions src/conversions/std/duration.rs

This file was deleted.

2 changes: 1 addition & 1 deletion src/conversions/std/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
mod array;
mod duration;
mod ipaddr;
mod map;
mod num;
Expand All @@ -8,4 +7,5 @@ mod path;
mod set;
mod slice;
mod string;
mod time;
mod vec;
Loading

0 comments on commit 5773554

Please sign in to comment.