[mythtv] MacOS python3.9+ IANA Time Zone Support

Nigel Pearson nigel.pearson.au at gmail.com
Fri Dec 3 21:06:27 UTC 2021


> On 4 Dec 2021, at 3:21 am, Roland Ernst <rcrernst at gmail.com> wrote:
> 
> I do not know how OS X itself organize the zoneinfo data which one can find on linux under
> /usr/share/zoneinfo


A bunch of files and directories, similar to most Linuxes,
EXCEPT that there is no localtime symlink:

% ls -p /usr/share/zoneinfo
+VERSION	Cuba		GMT-0		MET		ROK
Africa/		EET		GMT0		MST		Singapore
America/	EST		Greenwich	MST7MDT		Turkey
Antarctica/	EST5EDT		HST		Mexico/		UCT
Arctic/		Egypt		Hongkong	NZ		US/
Asia/		Eire		Iceland		NZ-CHAT		UTC
Atlantic/	Etc/		Indian/		Navajo		Universal
Australia/	Europe/		Iran		PRC		W-SU
Brazil/		Factory		Israel		PST8PDT		WET
CET		GB		Jamaica		Pacific/	Zulu
CST6CDT		GB-Eire		Japan		Poland		iso3166.tab
Canada/		GMT		Kwajalein	Portugal	posixrules
Chile/		GMT+0		Libya		ROC		zone.tab




There is usually /etc/localtime:

% ls -l /etc/*time*
lrwxr-xr-x  1 root  wheel  36 17 Feb  2017 /etc/localtime -> /usr/share/zoneinfo/Australia/Sydney



but OS X has so many databases,  and changes between releases,
that I wouldn’t trust it.

Python developers shouldn’t rely on it.


--
Nigel Pearson, 02 9792 6998, 0408 66 44 35
nigel.pearson.au at gmail.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-dev/attachments/20211204/9ec5c2aa/attachment.htm>


More information about the mythtv-dev mailing list