def is_aware(value):
return value.tzinfo is not None and value.tzinfo.utcoffset(value) is not None<EOL>
Determines if a given datetime.datetime is aware.

The logic is described in Python's docs:
http://docs.python.org/library/datetime.html#datetime.tzinfo