Date issue Win98 vs NT
John Roth
johnroth at ameritech.net
Wed Jul 2 07:23:48 EDT 2003
"Stan Cook" <scook at elp.rr.com> wrote in message
news:SDsMa.38974$hV.2346862 at twister.austin.rr.com...
> Has anyone else had this or a similar problem and is there a
workaround?
>
> This piece of code:
>
> from time import gmtime, strftime
> _log = _log + "\\" + strftime("%m%d%y", gmtime()) + ".log"
>
> produces a file with the name 'today's date.log' on NT, but creates a
file
> called 'tomorrow's date.log' on Windows 98. I would really like to
know
> why this happens. Any help offered is very much appreciated.
I just tried it (Win 98SE, Python 2.2) and it works properly.
Have you checked your date settings on the Win 98 machine?
John Roth
>
> Thanks,
>
> Stan
>
>
More information about the Python-list
mailing list