David Shivaji

One thing you might find yourself doing a lot is getting the current date. Usually this will be to write files.

Here’s how to do it

from datetime import datetime
print(datetime.today()) # 2021-09-16 13:10:52.572340

#…

--

--