import datetime
# the datetime module has functions and objects related to time.
birthdate = datetime.datetime(2001, 12, 12)

birth = datetime.date(2001, 12, 12)
print(birth.year)
print(birth.month)
print(birth.day)

# time

time = datetime.time(5, 2, 40)

print(time.hour)
print(time.minute)
print(time.second)

