time bug in Python 2.2(Windows)?

DIG dig.list at telkel.net
Thu Aug 1 19:29:21 EDT 2002


Hi, Lucas Vogel !

 On Thu, Aug 01, 2002 at 03:57:41PM -0700, Lucas Vogel wrote:

> I am using the time module to convert the creation date of a file to a
> date format for comparison.
> 
> The creation time of the file I am looking at is 3/19/2002 at 7:14:32
> PM.
> 
> os.stat returns a tuple of:
>  (33206, 0L, 4, 1, 0, 0, 2536L, 1028240652, 1016594072, 1016594072)
> 
> calling time.ctime(1016594072) returns this tuple:
>  (2002, 3, 20, 3, 14, 32, 2, 79, 0)
> 
> 
> Clearly something is amiss here, but wherein lies the problem? Is it
> the value returned from stat? Am I not doing something correctly?
> 

It looks like Time Zone shift.


Regards,

-- 
DIG (Dmitri I GOULIAEV)




More information about the Python-list mailing list