All public logs
Combined display of all available logs of Computer Science Wiki. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 08:35, 28 March 2023 Mr. MacKenty talk contribs created page Date and times with Python (Created page with "<syntaxhighlight lang="python"> import datetime # to get the current date and time: print(datetime.datetime.now()) # to get the current date: print(datetime.date.today()) # to get the current time: print(datetime.datetime.now().time()) # to get the current year: print(datetime.datetime.now().year) # to get the day of the week: print(datetime.datetime.now().weekday()) # to print the day of the week: print(datetime.datetime.now().strftime("%A")) # to ask the user to...")