[Bug,Mac] Bug in Python 1.5.x ?time origin error

Howard Oakley Howard at quercus.demon.co.uk
Fri Sep 17 15:05:06 EDT 1999


Gentlepersons,

I have a bug report on Python for Mac versions 1.5.1 and 1.5.2b1. The date
functions seem to have systematic errors of 1 day short of 4 years (is this
because the Unix and Mac OS origins of time differ by this amount?). For
example, to write the *correct* time now to the Finder info, you need to
correct it thus:

now = time.time()
timenwur = now - 126144000.0
dir_fss.SetDates(crdate, timenwur, bkdate)

Has this been reported before?

[I am also reporting this to Jack Jansen by mail.]

Howard.







More information about the Python-list mailing list