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

2013-09-19 Thread Anssi Saari
random...@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 propo

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

2013-09-17 Thread random832
On Mon, Sep 16, 2013, at 16:55, Michael Schwarz wrote: > On 2013-W38-1, at 19:56, random...@fastmail.us wrote: > > > On Mon, Sep 16, 2013, at 9:15, Michael Schwarz wrote: > >> According to the documentation of time.gmtime(), it returns a struct_time > >> in UTC, but

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

2013-09-16 Thread Michael Schwarz
On 2013-W38-1, at 19:56, random...@fastmail.us wrote: > On Mon, Sep 16, 2013, at 9:15, Michael Schwarz wrote: >> According to the documentation of time.gmtime(), it returns a struct_time >> in UTC, but %z is replaced by +0100, which is the UTC offset of my OS’s >> time zone

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

2013-09-16 Thread random832
On Mon, Sep 16, 2013, at 9:15, Michael Schwarz wrote: > According to the documentation of time.gmtime(), it returns a struct_time > in UTC, but %z is replaced by +0100, which is the UTC offset of my OS’s > time zone without DST, but DST is currently in effect here (but was not > at t

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

2013-09-16 Thread Michael Schwarz
I’m wondering whether this is expected: Python 3.3.2 (default, May 21 2013, 11:50:47) [GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> impo

Re: time.gmtime

2008-01-25 Thread Paul Boddie
On 25 Jan, 11:43, asit <[EMAIL PROTECTED]> wrote: > we know that time.gmtime(secs) takes a parameter secs. what does this > secs suggest ??What is it's significance ?? >From the documentation [1] with some editing: """ gmtime([secs]) Convert a time expressed i

Re: time.gmtime

2008-01-25 Thread Harald Karner
asit wrote: > we know that time.gmtime(secs) takes a parameter secs. what does this > secs suggest ??What is it's significance ?? >>> import time >>> help (time.gmtime) Help on built-in function gmtime in module time: gmtime(...) gmtime([seconds]) -> (

time.gmtime

2008-01-25 Thread asit
we know that time.gmtime(secs) takes a parameter secs. what does this secs suggest ??What is it's significance ?? -- http://mail.python.org/mailman/listinfo/python-list