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