The 'datetime' class is a part of 'datetime' module that contains information about both date and time.