file time to dos time
Nick Collier
nick at src.uchicago.edu
Wed Dec 22 11:00:26 EST 1999
Hi,
I'm trying to convert the results of os.path.getmtime(path) - last
modification time in seconds since the epoch - to the dos time format
which I think is a 36 bit number with bit fields for the year, month,
day, hour, seconds. I'm coming close with some guessed at bitwise
arthimetic, but can't get the year correct. Any suggestions?
thanks,
Nick
--
Nick Collier
nick at src.uchicago.edu
Social Science Research Computing
University of Chicago
Chicago, IL 60637
More information about the Python-list
mailing list