Dates and Memory

Recently, I was working with Daf and Rob on a little offline wiki project — more on that soon — and we realized that we needed to parse some dates in ISO 8601 format. One of us wondered out loud if there was a Python module that could help us. I offered to take a look.

Turns out, less than two months before, someone had uploaded just such a module into Debian. The maintainer? Me.

7 Replies to “Dates and Memory”

  1. Congrats you are now old!

    The thing that always happens to me to to be googling for some error string and the first hit is a bug in the Debian BTS that I either filed, triaged, or solved.

  2. Alternatively, have you taken a look at python-dateutil (also in Debian, and ported to Python 3, though apparently not both at the same time)?

    Use is easy:

    >>> import dateutil.parser
    >>> dateutil.parser.parse(‘2007-06-20T12:34:40+03:00’)
    datetime.datetime(2007, 6, 20, 12, 34, 40, tzinfo=tzoffset(None, 10800))

Leave a Reply

Your email address will not be published. Required fields are marked *