Add Nova time util functions to timeutils.py

Bug #1009410 reported by Zhongyue Luo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-common
Fix Released
Undecided
Zhongyue Luo

Bug Description

As part of Nova's move to openstack-common, we have to relocate time related functions in nova/utils.py to timeutils. Since the utcnow.override_time functionality is in openstack-common due to its usage in Nova, it is logical that other time methods should also be palced aside.

Zhongyue Luo (zyluo)
description: updated
description: updated
Changed in openstack-common:
assignee: nobody → Zhongyue Luo (lzyeval)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-common (master)

Fix proposed to branch: master
Review: https://review.openstack.org/8225

Changed in openstack-common:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-common (master)

Reviewed: https://review.openstack.org/8225
Committed: http://github.com/openstack/openstack-common/commit/e67d7775a7a3347c795a5ff3ed8166f850b8598e
Submitter: Jenkins
Branch: master

commit e67d7775a7a3347c795a5ff3ed8166f850b8598e
Author: Zhongyue Luo <email address hidden>
Date: Wed Jun 6 17:51:07 2012 +0800

    Add nova time util functions to timeutils

    Fixes bug #1009410

    1. Add the following functions from nova/utils.py
    - strtime
    - parse_strtime
    - is_older_than
    - utcnow_ts
    - advance_time_delta
    - advance_time_seconds

    2. Write unittests in tests/unit/test_timeutils.py

    Change-Id: Ie0bba90833e2ed31bb5ab867a7c1a76a9901cacb

Changed in openstack-common:
status: In Progress → Fix Committed
Mark McLoughlin (markmc)
Changed in openstack-common:
milestone: none → 2012.2
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.