0

I have the following error when i try to add the difference of two timestamps in txt file in python

TimeStamp3 = TimeStamp2 - TimeStamp1
TimeStamp3_str = TimeStamp_3.strftime("%d (%H:%M:%S.%f)")
LogFile.write('Total time: ' + TimeStamp3_Str + '\n')


AttributeError: 'datetime.timedelta' object has no attribute 'strftime

0 Answers0