Hello I want to check if the time A
that I have in my dataset is night or day
import datetime
A
datetime.datetime(2011, 4, 12, 12, 39, 58)
if A < datetime.time(19):
print 'day'
else:
print 'night'
but I get the following error and I don't understand why
TypeError: descriptor 'time' requires a 'datetime.datetime' object but received a 'int'