Convert an RFC 3339 time to a standard Python timestamp

后端 未结 14 1861
Happy的楠姐
Happy的楠姐 2020-12-03 04:40

Is there an easy way to convert an RFC 3339 time into a regular Python timestamp?

I\'ve got a script which is reading an ATOM feed and I\'d like to be able to compar

14条回答
  •  死守一世寂寞
    2020-12-03 05:16

    No builtin, afaik.

    feed.date.rfc3339 This is a Python library module with functions for converting timestamp strings in RFC 3339 format to Python time float values, and vice versa. RFC 3339 is the timestamp format used by the Atom feed syndication format.

    It is BSD-licensed.

    http://home.blarg.net/~steveha/pyfeed.html

    (Edited so it's clear I didn't write it. :-)

提交回复
热议问题