Zoneinfo.TZPATH

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:

# 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:

IANA timezone database paths:
('/usr/share/zoneinfo', '/usr/lib/zoneinfo', '/usr/share/lib/zoneinfo', '/etc/zoneinfo')

Copyright 2023 © pythontic.com