[Datetime-SIG] Allow numerical arguments for timezones

Guido van Rossum guido at python.org
Thu Dec 10 20:09:37 EST 2015


There definitely are timezones with other offsets than whole hours (
http://www.timeanddate.com/time/time-zones-interesting.html). The reason
that timezone() takes a timedelta is to avoid mistakes in the units. The
world is better off with a recipe or an example in the docs than with yet
another variant to this API.

-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20151210/4f596b92/attachment.html>


More information about the Datetime-SIG mailing list