From 0a5bb4d1e1b93fba739ba3666141c25bff927981 Mon Sep 17 00:00:00 2001 From: jayasree723 Date: Mon, 27 Jul 2026 15:24:57 +0530 Subject: [PATCH] Add documentation for pendulum.timezones() --- docs/docs/timezones.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/docs/timezones.md b/docs/docs/timezones.md index e70034e7..467596a0 100644 --- a/docs/docs/timezones.md +++ b/docs/docs/timezones.md @@ -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