Index datetime python
Python strftime() - datetime object to string. The strftime() method is defined under classes date, datetime and time. The method creates a formatted string from a given date, datetime or time object. Introduction : datetime module It is a python module which provides several functions for dealing with dates and time. It has four classes as follows which are explained in the latter part of this article how these classes work. datetime; date; time; timedelta