Commit Graph

91 Commits

Author SHA1 Message Date
Laurence Withers 7ba82a2988 Add default path for iso8601_leap_table_load() 2009-05-29 14:51:26 +00:00
Laurence Withers b7d039a32c Add iso8601_elapsed_divide() 2009-05-29 14:51:14 +00:00
Laurence Withers dcfc699af0 Bump version 2009-04-06 14:58:26 +00:00
Laurence Withers 47ccc537b8 Bump version 2009-04-06 14:58:26 +00:00
Laurence Withers 1d9447dcd2 Add iso8601_cmp(), comparison function for qsort() 2009-04-06 14:58:05 +00:00
Laurence Withers d09e55e8ae Update build system 2009-04-06 14:56:00 +00:00
Laurence Withers 3309803b9e Bump version 2009-02-12 02:32:14 +00:00
Laurence Withers 076d215860 Bump version 2009-02-12 02:32:14 +00:00
Laurence Withers 6937f2f12b Bugfix in rounding of iso8601_add_elapsed()
When adding a number of nanoseconds so that the resultant date lies exactly on
a second boundary, rounding was not performed when it should have been. Fix
the rounding so that the seconds field rolls over.
2009-02-12 02:31:04 +00:00
Laurence Withers c4679ded38 Bump version 2009-01-03 19:40:43 +00:00
Laurence Withers 557c7e1efb Bump version 2009-01-03 19:40:43 +00:00
Laurence Withers 711872660b Add documentation for leap second table functions 2009-01-03 19:40:16 +00:00
Laurence Withers ddaa9a8f8d Link to enumerations correctly in documentation 2009-01-03 19:34:17 +00:00
Laurence Withers 394dc40b97 Add mechanism to free old leap table
To avoid memory leaks, we add a simple internal mechanism to free the table
of leap seconds if it was previously loaded from disk. The user is still
responsible for freeing their own tables, of course.
2009-01-03 19:33:24 +00:00
Laurence Withers 73df6f836d Remove stale pkgconfig file 2009-01-03 19:22:21 +00:00
Laurence Withers a0f747067d Add functions to load/set leap second table 2009-01-03 19:21:46 +00:00
Laurence Withers e908febba2 Move -std=gnu99 to correct place, use _GNU_SOURCE 2009-01-03 19:21:25 +00:00
Laurence Withers 2c016208f2 Use dynamic table for leap second days 2009-01-03 19:08:21 +00:00
Laurence Withers 849744bb07 Use std=gnu99
This allows us to use C99 features such as lldiv along with GNU extensions
and POSIX, etc.
2009-01-03 19:04:54 +00:00
Laurence Withers 2d51d09c83 Upgrade build system 2008-12-20 22:36:28 +00:00
Laurence Withers cad2283f6a Add iso8601_add_multiple()
Add a function to efficiently add (or subtract) a multiple of a period
to a timestamp.
2008-12-11 15:37:12 +00:00
Laurence Withers d431f68054 Add leap second for 2008-12-31
Add an entry to record the leap second at 2008-12-31, and tidy up the table
formatting.
2008-12-10 18:24:32 +00:00
Laurence Withers 0d504baaee Bump version 2008-01-07 13:17:17 +00:00
Laurence Withers 93efb6294d Bump version 2008-01-07 13:16:22 +00:00
Laurence Withers 6246f8ebcd Fix missing null termination when tz_sec = 0, add test for it 2008-01-07 13:16:18 +00:00
Laurence Withers 048196532e Bump version 2008-01-04 22:47:16 +00:00
Laurence Withers 1f43445813 Fix bug where iso8601_print() could overrun...
If a date with a timezone offset of 0 had a length exactly matching the
buffer size, we would write past the end of the buffer.
2008-01-04 22:47:10 +00:00
Laurence Withers 69628be83e Bump version 2007-12-05 17:45:34 +00:00
Laurence Withers a4e99696a1 Update build system 2007-12-05 17:45:23 +00:00
Laurence Withers 21adf7acf0 Add setisodate utility.
This utility is capable of setting the system clock, taking its argument
in ISO8601 format.
2007-09-13 11:16:23 +00:00
Laurence Withers 64c5ce0d65 Add the isodate utility.
This utility provides a way to display dates in ISO8601 format. The
exact output format can be controlled. It can either display dates
passed on the commandline or it can display the current date/time.
2007-09-13 11:09:32 +00:00
Laurence Withers 07a31fd8f7 Add doxygen markup for date/time precision enumerations 2007-09-13 11:08:51 +00:00
Laurence Withers c47e0e241f Add functions for converting to/from a struct timespec, and for setting
the system clock
2007-09-13 11:05:51 +00:00
Laurence Withers 2a51412ade Upgrade build system, bump version 2007-09-13 10:25:31 +00:00
Laurence Withers 7d35697775 Bump version 2007-08-21 09:54:57 +00:00
Laurence Withers f49b80de01 Add iso8601_difference() 2007-08-21 09:54:51 +00:00
Laurence Withers 4deda83c58 Bump version 2007-07-29 11:58:18 +00:00
Laurence Withers 6ae62fb796 Bump version 2007-07-29 11:58:18 +00:00
Laurence Withers ec6c9a41f7 Fix up elapsed manipulation 2007-07-29 11:57:13 +00:00
Laurence Withers e59586b265 Add an RPN date manipulator 2007-07-29 11:53:55 +00:00
Laurence Withers 124df16711 Bump version 2007-07-24 11:50:54 +00:00
Laurence Withers 1a92252640 Add doxygen documentation 2007-07-24 11:50:45 +00:00
Laurence Withers 6d9df9927d Bump version 2007-07-24 11:46:05 +00:00
Laurence Withers 1f44765f0b Bump version 2007-07-24 11:46:05 +00:00
Laurence Withers a46057ef49 Fix up leap second manipulations 2007-07-24 11:45:21 +00:00
Laurence Withers 35c4455bc2 Further WIP on tidy up and merge beginning of new manipulation infrastructur 2007-07-23 16:55:13 +00:00
Laurence Withers 603b067310 Further WIP on tidy up 2007-07-23 15:00:08 +00:00
Laurence Withers f82859fa78 Make iso8601_print() return a pointer to its output buffer. This breaks
the ABI.
2007-07-23 14:47:49 +00:00
Laurence Withers d08f81a6cf Clean up printing 2007-07-23 14:45:11 +00:00
Laurence Withers 5d73f2f004 Pull in sys/time.h for gettimeofday 2007-07-23 14:44:43 +00:00