def is_aware(value):
 return ((value.tzinfo is not None) and (value.tzinfo.utcoffset(value) is not None))

def is_aware ( value ) : return ( ( value . tzinfo is not None ) and ( value . tzinfo . utcoffset ( value ) is not None ) )
determines if a given datetime .