~ubuntu-branches/ubuntu/raring/glance/raring-proposed

« back to all changes in this revision

Viewing changes to glance/openstack/common/timeutils.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-03-20 07:42:22 UTC
  • mto: This revision was merged to the branch mainline in revision 68.
  • Revision ID: package-import@ubuntu.com-20130320074222-ty2todj0yxtnq3lb
Tags: upstream-2013.1~rc1
ImportĀ upstreamĀ versionĀ 2013.1~rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
    :return: True if expiration is within the given duration
180
180
    """
181
181
    soon = (utcnow() + datetime.timedelta(seconds=window))
182
 
    return normalize_time(dt) < soon
 
182
    return normalize_time(dt) <= soon