Commit Graph

102 Commits

Author SHA1 Message Date
Laurence Withers 0d56edd890 Bump version 2010-01-28 16:22:46 +00:00
Laurence Withers 65fe613272 Bump version 2010-01-28 16:22:39 +00:00
Laurence Withers 64e06d17c4 Add explicit note on params which may be null 2010-01-28 16:22:03 +00:00
Laurence Withers cd9a2d252a iso8601_difference(): incorrect nonnull attribute
iso8601_difference was incorrectly marked as having all of its attributes
required to be non-null, but this is not the case according to the docs or
the implementation. This was causing a crash as the compiled library was
taking advantage of the nonnull notation to remove some tests against null
which, according to the docs, are actually required.

Fix by tightening the nonnull specification to those parameters which actually
require it.
2010-01-28 16:17:53 +00:00
Laurence Withers ed05b5c872 Bump version 2010-01-08 19:26:21 +00:00
Laurence Withers bd4ddd7621 Write brief description for library
Add a brief description of the library on the doxygen front page.
2010-01-08 19:25:58 +00:00
Laurence Withers 420df40a5b Bring C code up to coding standards
Reformatting and comment improvement only. No code changes.
2010-01-08 19:22:36 +00:00
Laurence Withers 9f3fbd4116 Minor build system update
A fix for when there are multiple libraries in a single package. Doesn't apply
here but just in case.
2010-01-08 18:49:50 +00:00
Laurence Withers 6285d214aa Documentation and annotation updates
This commit updates the Doxygen documentation (particularly taking into account
a request from Kelly Dunlop for more verbose notice about which members are
changed by iso8601_from_*()) and file/function annotation/formatting to current
standards.
2010-01-08 18:46:34 +00:00
Laurence Withers e504a722f5 Bump version 2009-05-29 14:52:52 +00:00
Laurence Withers 1a0553e083 Bump version 2009-05-29 14:52:52 +00:00
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