Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds conversion between SystemTime and datetime #3736

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading