Python Date Output
When we execute the code from the example above the result will be:
The date contains year, month, day, hour, minute, second, and microsecond.
datetime module has many methods to return information about the date
Here are a few examples, you will learn more about them later in this chapter:
Return the year and name of weekday:
x = datetime.datetime.now()