script for seconds in given month?

pythoncurious at gmail.com pythoncurious at gmail.com
Tue Apr 17 09:52:46 CEST 2007


On Apr 16, 7:49 pm, "edfialk" <edfi... at gmail.com> wrote:
> Jim: I need years too, basically from 1960-2000.  Don't want to
> hardcode all those days :)
>
> Matt: Thanks, I will try this out.
>
> Paul: I don't believe we need leapseconds.  Leap days definitely.
>
> I'll let you know how Matt's code works.  Any other suggestions feel
> free to let me know.
>
> Thanks all!
> -Ed

There's one thing I forgot to mention: mktime (like most things using
the standard C functions) will work reliably from 1970 to 2038 or so.
Also, I think posix explicitly says that leap seconds are ignored, so
those are not covered.

/Matt




More information about the Python-list mailing list