镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
Open
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
15 changes: 15 additions & 0 deletions docs/docs/timezones.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@ tries to provide an easy and accurate system to handle them properly.
can also be used with the standard ``datetime`` library with a few limitations.
See [Using the timezone library directly](#using-the-timezone-library-directly).

## Listing available time zones

You can retrieve the available IANA time zone names using
`pendulum.timezones()`.

```python
>>> import pendulum

>>> zones = pendulum.timezones()
>>> "Europe/Paris" in zones
True
```

The function returns a `set[str]` of available IANA time zone names.

## Normalization

When you create a `DateTime` instance, the library will normalize it for the
Expand Down