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

docs: fix incorrect example of valid time zones #11873

Merged
merged 2 commits into from
Oct 20, 2023
Merged
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
14 changes: 7 additions & 7 deletions docs/user-guide/transformations/time-series/timezones.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ hide:
The `Datetime` datatype can have a time zone associated with it.
Examples of valid time zones are:

- `None`: no time zone, also known as "time zone naive";
- `UTC`: Coordinated Universal Time;
- `None`: no time zone, also known as "time zone naive".
- `UTC`: Coordinated Universal Time.
- `Asia/Kathmandu`: time zone in "area/location" format.
See the [list of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
to see what's available;
- `+01:00`: fixed offsets. May be useful when parsing, but you almost certainly want the "Area/Location"
format above instead as it will deal with irregularities such as DST (Daylight Saving Time) for you.
stinodego marked this conversation as resolved.
Show resolved Hide resolved
to see what's available.

Caution: Fixed offsets such as +02:00, should not be used for handling time zones. It's advised to use the "Area/Location" format mentioned above, as it can manage timezones more effectively.

Note that, because a `Datetime` can only have a single time zone, it is
impossible to have a column with multiple time zones. If you are parsing data
Expand All @@ -27,8 +27,8 @@ them all to a common time zone (`UTC`), see [parsing dates and times](parsing.md

The main methods for setting and converting between time zones are:

- `dt.convert_time_zone`: convert from one time zone to another;
- `dt.replace_time_zone`: set/unset/change time zone;
- `dt.convert_time_zone`: convert from one time zone to another.
- `dt.replace_time_zone`: set/unset/change time zone.

Let's look at some examples of common operations:

Expand Down