libiso8601


Library
C
GPLv3
Active

libiso8601 provides a C API for parsing and manipulating ISO8601 times/dates. Each time/date object is specified to the nearest nanosecond. Parsed times which are specified to less accuracy give a start/end time and the parser can also record the original accuracy and format for later reproduction after manipulation.

This library currently only has time/date parsing and printing, and some simple manipulation functions (it does allow parsing of basic or extended format ISO dates in ISO week, ordinal or calendar varieties). In particular it does not deal with recurring times. This is reflected in its low version number.

Note that libiso8601 has full leap second support. Leap seconds cannot be computed in advance, so it is necessary to signal new leap seconds to running applications somehow. The library has a function, iso8601_leap_table_load(), which can update the table of leap seconds from a disk file. See the leaptable-compiler project for more information. It might be sensible to design applications to try to load this file from disk every few days, with a weekly or monthly cron job to download the table of leap seconds.

Downloads

You can download the latest version by cloning the git repository:

git clone git://git.lwithers.me.uk/libiso8601
Released Files.
Version Date Source GPG Signature (key) Documentation Doc Signature Dependencies
0.3.15 2012-06-12 .tar.bz2 .tar.bz2.asc .tar.bz2 .tar.bz2.asc
0.3.14 2013-04-05 .tar.bz2 .tar.bz2.asc .tar.bz2 .tar.bz2.asc

Older releases may be found here.

News

2015-06-30T10:03Z

2013-04-05T09:37Z

2012-01-07T17:47Z

2011-11-18T12:22Z

2010-06-18T12:02Z

2010-06-18T12:50Z

2010-01-28T16:31Z

2010-01-08T19:32Z

2009-05-29T14:58Z

20090406T1507Z

20090212T0233Z

20090103T1945Z

20080107T1321Z

20080104T2251Z

20070913T1129Z

20070821T0956Z

20070729T1159

20070724T1153

20070723T1218

20070523T1327

20070522T1400

20070205T1400

20061213T2154

20061116T1825