Hacker GitHub

← All repos

closeio/ciso8601

View on GitHub ↗ ★ 577 Python

Fast ISO8601 date time parser for Python written in C

6 mentions on Hacker News by 4 people: 1 story, 5 comments · first 2014-06-10 · latest 2023-03-06

Mentions per year 6 mentions · busiest year 2014 (3)
20082026
  1. …ORMs and things like json and date parsing, as seen in the excellent ciso8601 [1] for example. [1] https://github.com/closeio/ciso8601
    comment by uniqueuid · 2022-07-06 · in Python 3.11 vs 3.10 performance
  2. …With my C module, I got 320ns, which was 62x faster than Python's less flexible strptime. See https://github.com/closeio/ciso8601/ for my benchmarks.
    comment by thomas-st · 2016-10-13 · in Timing the time it takes to parse time
  3. …though :) EDIT: Wouldn't most C compilers unroll the simple "for" loops? Direct link to the C code: https://github.com/elasticsales/ciso8601/blob/master/module....
  4. …time zone information. ciso8601 supports time zones using pytz' FixedOffset and UTC classes, see https://github.com/elasticsales/ciso8601 for additional benchmarks. There's potential for further speedup by using a tzoffset subclass written…
  5. You can see the issue it solves pretty clearly here: https://github.com/elasticsales/ciso8601#benchmark Python != PHP