Repository URL to install this package:
|
Version:
0.6.0-doordash ▾
|
def is_aware(value): # taken from django/utils/timezone.py
"""
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
"""
return value.tzinfo is not None and value.tzinfo.utcoffset(value) is not None