-
Notifications
You must be signed in to change notification settings - Fork 733
refactor: Centralize date/time handling with Timestamp wrapper #6650
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
Changes from all commits
f672ba0
d3e90f0
9e045d4
44267e2
3b5a2f9
c524280
8ebbb36
9640799
90b564a
b113811
cde0223
1e080d6
0de9fea
d24fde0
fa3f279
4dd5256
bd88579
d0b9743
2c4520c
dee68b8
edb0f55
1ef75d1
cceacc4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,6 @@ | |
| // under the License. | ||
|
|
||
| use crate::*; | ||
| use jiff::Timestamp; | ||
| use std::collections::HashMap; | ||
|
|
||
| #[pyclass(module = "opendal")] | ||
|
|
@@ -121,8 +120,8 @@ impl Metadata { | |
|
|
||
| /// Last modified time | ||
| #[getter] | ||
| pub fn last_modified(&self) -> Option<Timestamp> { | ||
| self.0.last_modified() | ||
| pub fn last_modified(&self) -> Option<jiff::Timestamp> { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cool,
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. PyO3/pyo3#4823 and others. |
||
| self.0.last_modified().map(Into::into) | ||
| } | ||
|
|
||
| /// Version of this entry, if available. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a bug I'll fix then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow up at #6663