Handling date and time in Python using datetime module

Handling date and time in Python using datetime module

In Python, date and time are not represented as specific data types, but a special module called datetime module can be imported in order to work with date and time as objects.

Installation

This is an inbuilt module, hence it does not require any specific installation.

How it works

The classes in this module are used for manipulating dates and times. These classes provide a number of functions which can be used to work with them. As these are datetime objects in Python, when you manipulate...

 •  0 comments  •  flag
Share on Twitter
Published on May 15, 2020 16:45
No comments have been added yet.