Skip to content

Commit

Permalink
docs: fix incorrect example of valid time zones (#11873)
Browse files Browse the repository at this point in the history
  • Loading branch information
romanovacca authored Oct 20, 2023
1 parent eac03a2 commit c8cfdee
Showing 1 changed file with 7 additions and 7 deletions.
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.
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

0 comments on commit c8cfdee

Please sign in to comment.