zoneinfo.TZPATH

zoneinfo.TZPATH holds the paths to look for the IANA time zone databases while constructing a ZoneInfo object.

Zoneinfo Updated 8 Dec 2020 1 min read

Name of the Global

zoneinfo.TZPATH

Overview

  • TZPATH holds the paths to search for the presence of IANA time zone database during the creation of a zoneinfo.ZoneInfo object.

Example

python
# Example Python program that returns the path(s) from where Python

# collects IANA time zone information

import zoneinfo

print("IANA timezone database paths:");

            print(zoneinfo.TZPATH);

Output

Output
IANA timezone database paths:

            ('/usr/share/zoneinfo', '/usr/lib/zoneinfo', '/usr/share/lib/zoneinfo', '/etc/zoneinfo')