In all the recipes so far, we performed multiple operations on the
time objects. But the objects themselves are represented in certain formats. For instance, by default, the
date() object is represented in a YYYY-MM-DD format and the
time() object is represented in a HH:MM:SS format. While these representations are good, we can't always use these formats for representing data to the users on a website or while scheduling meetings from a web page.
In this section, we quickly look at the different formats in which the
time objects can be manifested to the users.
For this recipe, we end up using the same
datetime module that gets packaged with the default Python installation.