Created
November 6, 2019 16:09
-
-
Save icarrr/9511291cf6343a39baa653bcc9f00156 to your computer and use it in GitHub Desktop.
Get time using python
This file contains 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 time | |
def get_time(): | |
print (time.strftime('%m-%d-%Y %H:%M:%S')) | |
get_time() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment