Google News
logo
Python - Interview Questions
What is Python Date and Time ?
The datetime classes in Python are categorized into main 5 classes.

date : Manipulate just date ( Month, day, year)
time : Time independent of the day (Hour, minute, second, microsecond)
datetime : Combination of time and date (Month, day, year, hour, second, microsecond)
timedelta : A duration of time used for manipulating dates
tzinfo :  An abstract class for dealing with time zones
Advertisement