[Python-Dev] Stdlib and timezones, again (original) (raw)

Xavier Morel python-dev at masklinn.net
Mon Oct 1 18:00:40 CEST 2012


On 2012-10-01, at 17:32 , Terry Reedy wrote:

On 10/1/2012 10:06 AM, Lennart Regebro wrote:

Actually, that's not a bad idea. My original idea was to warn if it was outdated, but since there is no way to check that, I scratched that idea. Is there really no way to get a 'last updated' time from the site where the database is kept? If not, perhaps we should provide one with a daily job (on pypi?) that downloads and compares.

There are several: there's a message on a dedicated mailing list and there are HTTP, FTP and rsync repositories with both all releases and a "latest" archive for both tzdata and tzcode. The HTTP repositories seems to handle time-based conditional requests correctly (an If-Modified-Since with the date of the latest release or later will result in a 304 response, earlier will result in a 200)

The HTTP URIs are https://www.iana.org/time-zones/repository/tzdata-latest.tar.gz and https://www.iana.org/time-zones/repository/tzcode-latest.tar.gz

For some reason, IANA does not seem to publish a feed.



More information about the Python-Dev mailing list