Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #54441

Re: Is %z broken for return values of time.gmtime()?

From Anssi Saari <as@sci.fi>
Newsgroups comp.lang.python
Subject Re: Is %z broken for return values of time.gmtime()?
Date 2013-09-18 15:01 +0300
Message-ID <vg3d2o4a8z4.fsf@coffee.modeemi.fi> (permalink)
References <3C2755B3-2478-45E1-88F5-9FD961F2B1BD@gmail.com> <1379354161.1707.22675889.2647208B@webmail.messagingengine.com> <AFCFEAA4-5D61-4318-B737-AA7BDEDBAF80@gmail.com> <mailman.65.1379422087.18130.python-list@python.org>

Show all headers | View raw


random832@fastmail.us writes:

> I would argue that it _should_ be, and that it should populate it with 0
> in gmtime or either with timezone/altzone or by some sort of reverse
> calculation in localtime, but it is not. Another problem to add to my
> list of reasons for my recent python-ideas proposal.

Docs say that tm_gmtoff and tm_zone are available if the struct tm in
the underlying C library has it. Based on that I kinda expected Cygwin
to have it but apparently not.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: Is %z broken for return values of time.gmtime()? random832@fastmail.us - 2013-09-17 08:48 -0400
  Re: Is %z broken for return values of time.gmtime()? Anssi Saari <as@sci.fi> - 2013-09-18 15:01 +0300

csiph-web