

def get_expire_delta(self, reference=None):
    '\n        Return the number of seconds until this token expires.\n        '
    if (reference is None):
        reference = now()
    expiration = self.expires
    if timezone:
        if (timezone.is_aware(reference) and timezone.is_naive(expiration)):
            expiration = timezone.make_aware(expiration, timezone.utc)
        elif (timezone.is_naive(reference) and timezone.is_aware(expiration)):
            reference = timezone.make_aware(reference, timezone.utc)
    timedelta = (expiration - reference)
    return ((timedelta.days * 86400) + expiration.seconds)

dataset/ETHPy150Open caffeinehit/django-oauth2-provider/provider/oauth2/models.py AccessToken.get_expire_delta/VarMisuse@128/170 `timedelta`->`expiration`