-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feat(rust, python): add dt.dst_offset feature #9629
Conversation
polars/polars-time/src/dst_offset.rs
Outdated
}; | ||
|
||
#[cfg(feature = "timezones")] | ||
pub trait PolarsDSTOffset { |
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.
Given that we only dispatch via the expression API. Shall simply make a function that accepts a &DatetimeChunked
.
Thanks @MarcoGorelli. Looks great! I shall leave the credit of the SO question for you. ;) |
Whoops! I already merged. We forgot the docs entry in the reference guide. 🙈 |
ah my bad (I may need to try writing a script for this, it's not the first time I forget) - anyway, added in #9636 for now |
closes https://stackoverflow.com/questions/76578147/dst-temporal-feature-from-timestamp-using-polars ;) (should probably be added as an answer if/when accepted + released)
Related, but I think it'd be good to add
.dt.base_utc_offset
as well