Greg Weller added the comment:
I think this is a documentation bug. The criteria for datetime and time
objects being aware are slightly different. A datetime object d is aware if
d.tzinfo.utcoffset(d) does not return None, while a time object t is aware if
t.tzinfo.utcoffset(None) does not
Greg Weller added the comment:
I agree that the language in the quoted paragraph makes it sound as if any
object with a non-None tzinfo is aware, which isn't the case. I've changed the
first couple sentences to, I think, better reflect what characterizes an object
as b