Skip to content

Instantly share code, notes, and snippets.

@alexanderawwagner
Last active June 25, 2021 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexanderawwagner/e40bec05c8dc945c55680db854e30850 to your computer and use it in GitHub Desktop.
Save alexanderawwagner/e40bec05c8dc945c55680db854e30850 to your computer and use it in GitHub Desktop.
Medium_05_Python Course-Part 05-Functions
def DateTimeText(text):
from datetime import datetime
crawlDate=datetime.now().strftime('%Y-%m-%d')
crawlTime=datetime.now().strftime('%H:%M:%S')
print("date: ",crawlDate, " time: ", crawlTime, " ",text)
DateTimeText("Hello")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment