Last active
June 25, 2021 14:19
-
-
Save alexanderawwagner/e40bec05c8dc945c55680db854e30850 to your computer and use it in GitHub Desktop.
Medium_05_Python Course-Part 05-Functions
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
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