Fix date/time formatting to remove fraction seconds.

This commit is contained in:
Matt Guthaus 2018-11-14 10:31:33 -08:00
parent 18d874a96a
commit 2f6300c7a0
1 changed files with 3 additions and 3 deletions

View File

@ -389,10 +389,10 @@ def import_tech():
def print_time(name, now_time, last_time=None):
""" Print a statement about the time delta. """
if last_time:
time = round((now_time-last_time).total_seconds(),1)
time = str(round((now_time-last_time).total_seconds(),1)) + " seconds"
else:
time = now_time
print("** {0}: {1} seconds".format(name,time))
time = now_time.strftime('%m/%d/%Y %H:%M:%S')
print("** {0}: {1}".format(name,time))
def report_status():