Skip to content

Instantly share code, notes, and snippets.

@3rt4nm4n
Created November 25, 2021 12:27
Show Gist options
  • Save 3rt4nm4n/5deb5cbb10f265b2fe57480fd9ae78e8 to your computer and use it in GitHub Desktop.
Save 3rt4nm4n/5deb5cbb10f265b2fe57480fd9ae78e8 to your computer and use it in GitHub Desktop.
Code Snippet in python to get time (now)
#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