date and time comparison how to

noydb jenn.duerr at gmail.com
Mon Oct 29 21:47:19 EDT 2012


Thanks, I did find this...

pdf_timeStamp = time.strftime("%m%d%y%H%M%S",time.localtime(os.path.getmtime(pdf)))

>> pdf_timestamp
>> '102909133000'

... but now how to do the comparison?  Cannot just do a raw string comparison, gotta declare it a date



More information about the Python-list mailing list