update pytz to 2023.2/2023b tzdata
On 2023-03-07 22:11, Marco Atzeri wrote: On 07.03.2023 22:35, marco atzeri wrote: On Tue, Mar 7, 2023 at 10:18 PM Brian Inglis wrote: On 2022-03-20 10:00, Brian Inglis wrote: On 2021-12-21 09:06, Marco Atzeri wrote: python39-pytz 2021.3-1 Update needed to 2022g/2022.7.1 as a new Mexican zone was added since 2021c/2021.3 due to Mexican changes conflicting with US practices, affecting border towns: 2022.7.1 is up Thanks Marco, Looks like pytz needs another update as tzdata was updated twice this week! Some middle eastern governments just realized Ramadan was during DST ;^> $ pytz-date.py "%Y %b %d %a %T %Z%z" Asia/Beirut 2023 Mar 26 Sun 20:41:45 UTC+ zoneinfoUTC 2023 Mar 26 Sun 22:41:45 EET+0200 zoneinfoAsia/Beirut 2023 Mar 26 Sun 23:41:45 EEST+0300 pytzAsia/Beirut -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry#!/usr/bin/python # pytz-date.py - print current pytz date time in $1 format in $2 given zone from datetime import datetime from zoneinfo import ZoneInfo from pytz import timezone import pytz import sys # date -u +"$1"- zoneinfo print( datetime.now( ZoneInfo( "UTC" )).strftime( sys.argv[1] + "%tzoneinfo%tUTC" )) # TZ=$2 date +"$1" - zoneinfo print( datetime.now( ZoneInfo( sys.argv[2] )).strftime( sys.argv[1] + "%tzoneinfo%t" + sys.argv[2] )) # TZ=$2 date +"$1" - pytz print( datetime.now().astimezone( timezone( sys.argv[2] )).strftime( sys.argv[1] + "%tpytz%t%t" + sys.argv[2] )) -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
Re: update pytz to 2023.2/2023b tzdata?
On 2023-03-26 14:45, Brian Inglis via Cygwin wrote: On 2023-03-07 22:11, Marco Atzeri wrote: On 07.03.2023 22:35, marco atzeri wrote: On Tue, Mar 7, 2023 at 10:18 PM Brian Inglis wrote: On 2022-03-20 10:00, Brian Inglis wrote: On 2021-12-21 09:06, Marco Atzeri wrote: python39-pytz 2021.3-1 Update needed to 2022g/2022.7.1 as a new Mexican zone was added since 2021c/2021.3 due to Mexican changes conflicting with US practices, affecting border towns: 2022.7.1 is up Thanks Marco, Looks like pytz needs another update as tzdata was updated twice this week! Some middle eastern governments just realized Ramadan was during DST ;^> $ pytz-date.py "%Y %b %d %a %T %Z%z" Asia/Beirut 2023 Mar 26 Sun 20:41:45 UTC+ zoneinfo UTC 2023 Mar 26 Sun 22:41:45 EET+0200 zoneinfo Asia/Beirut 2023 Mar 26 Sun 23:41:45 EEST+0300 pytz Asia/Beirut I am unfamiliar with python and pytz, and I had a *local* pip install of pytz, which looks like it was overriding the Cygwin install. After doing a local pip uninstall and Cygwin reinstall, with updated tzdata only, it appears that current pytz may now be giving the correct results: $ ./pytz-date.py +"%Y %b %d %a %T %Z%z" Asia/Beirut 2023 Mar 27 Mon 00:05:57 UTC+ zoneinfoUTC 2023 Mar 27 Mon 00:05:57 UTC+ pytzUTC 2023 Mar 27 Mon 02:05:57 EET+0200 zoneinfoAsia/Beirut 2023 Mar 27 Mon 02:05:57 EET+0200 pytzAsia/Beirut so an updated release may not be required? There have been no zone changes, just DST rules. -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry#!/usr/bin/python # pytz-date.py - print current UTC, zoneinfo and pytz date time #in optional format "+"$1 in zone $# from datetime import datetime from zoneinfo import ZoneInfo from pytz import timezone import pytz import sys import os TZ = "TZ" # env var GMT = "GMT" # ref zones GMTP0 = "GMT+0" GMTM0 = "GMT-0" UTC = "UTC" refs= [ UTC , GMT , GMTP0 , GMTM0 ] FMT = "%c %Z%z" zi_fmt = "%tzoneinfo%t" pytz_fmt= "%tpytz%t%t" dt_fmt = FMT tz = os.getenv( TZ, UTC) # TZ env var else UTC argc= len( sys.argv ) argn= 1 # $1 +fmt optional override if argc > argn and sys.argv[argn][0] == "+": dt_fmt = sys.argv[argn][1:] argn += 1 # $# zone if argc > argn: tz = sys.argv[argn] # zone ref UTC zones = [ UTC ] # add arg if not same as ref if tz not in refs: zones = zones + [ tz ] # print ref and arg with zoneinfo and pytz for z in zones: # TZ=z date+"f" - zoneinfo print( datetime.now( ZoneInfo( z )).strftime( dt_fmt + zi_fmt + z )) # TZ=z date+"f" - pytz print( datetime.now().astimezone( timezone( z )).strftime( dt_fmt + pytz_fmt + z )) -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
[Returned Mail] Message could not be delivered
Date: 2023-03-27 12:05:54 +0800 From: cygwin@cygwin.com To: i...@aacoptics.com Subject: Message could not be delivered This mail is not allow for delivery because of the policy 您的账号没有外发权限 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
available mirrors URL
Dear Cygwin, I would like to be added to this list of available mirrors https:/mirror-hk.koddos.net Thanks Best regards, Stefan Lam Disclaimer: The information in this e-mail and its attachment(s) is privileged, confidential and intended for the use of the addressee only. If you are not the intended recipient, any retention, dissemination, distribution or copying or the taking of action in reliance on the information in this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete this e-mail. Blue Cross shall not be liable for the improper or incomplete transmission of the information in this e-mail nor for any delay in its receipt or damage to system. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple