On Apr 16, 7:49 pm, "edfialk" <[EMAIL PROTECTED]> 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 -- http://mail.python.org/mailman/listinfo/python-list