Created
November 25, 2021 12:27
-
-
Save 3rt4nm4n/5deb5cbb10f265b2fe57480fd9ae78e8 to your computer and use it in GitHub Desktop.
Code Snippet in python to get time (now)
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
#Getting Current Date in Python | |
from datetime import datetime | |
now=datetime.now() | |
dateformat=now.strftime("%d.%m.%y %H:%M") | |
print("Today's date "+str(dateformat)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment