Skip to content

Commit

Permalink
docs: add note about conversion as if from utc in convert_time_zone (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli authored Nov 4, 2024
1 parent 5c43561 commit 18d8bda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions narwhals/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -3917,6 +3917,9 @@ def convert_time_zone(self: Self, time_zone: str) -> T:
"""
Convert to a new time zone.
If converting from a time-zone-naive column, then conversion happens
as if converting from UTC.
Arguments:
time_zone: Target time zone.
Expand Down
3 changes: 3 additions & 0 deletions narwhals/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -3988,6 +3988,9 @@ def convert_time_zone(self: Self, time_zone: str) -> T:
"""
Convert time zone.
If converting from a time-zone-naive column, then conversion happens
as if converting from UTC.
Arguments:
time_zone: Target time zone.
Expand Down

0 comments on commit 18d8bda

Please sign in to comment.