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

Roland Ernst rcrernst at gmail.com
Wed Dec 1 20:24:54 UTC 2021

I kindly ask about the status of macoOs python 3.9+ and the support for
IANA time zones:
see https://docs.python.org/3/library/zoneinfo.html

My question is about recognizing the local time zone if given as
'localtime' parameter.
What does the following sequence show:

$ python3
>>> from zoneinfo import ZoneInfo
>>> from datetime import datetime
>>> localtz = ZoneInfo('localtime')
>>> now = datetime.now(localtz)
>>> now.tzname()
>>> now.tzinfo

This should report the name of the the current time zone (in my case 'CET')
and the current
usage of  pythons 'tzinfo' parameter.

My plan is to update the Mythtv's python bindings in that direction.

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

More information about the mythtv-dev mailing list