Commit 62ca3803 authored by Matthieu Cattin's avatar Matthieu Cattin

Apply patch from Alessandro removing total_seconds method use (only available from Python 2.7).

parent ce417f0a
......@@ -41,7 +41,8 @@ def main (default_directory='.'):
now_date = datetime.datetime.now()
ref_date = datetime.datetime(1996, 1, 1)
diff_date = now_date - ref_date
current_date = int(diff_date.total_seconds()//60)
total_seconds = diff_date.days * 86400 + diff_date.seconds
current_date = int(total_seconds//60)
print "Current date/time: %d minutes (since 0:00 1/1/96)\n" % current_date
# Manufacturiing date = current date
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment