[python-win32] Comparing dbase date value with os.path.getmtime(filename)

Randy in Wash st wawork at hotmail.com
Fri Oct 14 18:20:31 CEST 2005


I have a python script that opens a dbase table and reading a lastmod date 
file.  I would like to compare this value with the system datetime of a file 
on the network.  The os.path.getmtime(filename) function returns the time in 
9 digit sequence.  The dbase date prints out as 09/13/2005 12:00:00 AM while 
the getmtime returns 1126729268.

How can I convert the datetime coming from the dbase record with the modify 
datetime of a file so I can determine which date is older?

Thanks,
  r
  wawork at hotmail.com




More information about the Python-win32 mailing list