Last active
October 23, 2018 08:07
-
-
Save Aekschen/0d539141f2f804201e68040a444ccf2d to your computer and use it in GitHub Desktop.
datatime_methods
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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