Skip to content

Instantly share code, notes, and snippets.

@Aekschen
Last active October 23, 2018 08:07
Show Gist options
  • Select an option

  • Save Aekschen/0d539141f2f804201e68040a444ccf2d to your computer and use it in GitHub Desktop.

Select an option

Save Aekschen/0d539141f2f804201e68040a444ccf2d to your computer and use it in GitHub Desktop.
datatime_methods
import datetime
import time
start = datetime.datetime.now()
print("Start Time: " + str(datetime.datetime.now()))
time.sleep(2)
end = datetime.datetime.now()
print("End Time: " + str(datetime.datetime.now()))
print("Time between is " + str((end - start)).split(".")[0] )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment