[openstack-dev] [all][oslo] Parse ISO8601 (open) time intervals

Julien Danjou julien at danjou.info
Thu Sep 29 13:54:07 UTC 2016


On Tue, Sep 27 2016, milanisko k wrote:

> I'd like to ask whether other projects need to parse time intervals and/or
> how do they achieve that.

We kind of do that in Gnocchi, but we do with 2 fields: one ISO8601
timestamp and a timestamp field, which we parse using pytimeparse, you
(can check gnocchi.utils.to_timespan).

-- 
Julien Danjou
/* Free Software hacker
   https://julien.danjou.info */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160929/9b972742/attachment.pgp>


More information about the OpenStack-dev mailing list