Dateutils are a bunch of tools that revolve around fiddling with dates and times in the command line, with a strong focus on use cases that arise when dealing with large amounts of financial data. Their target market is shell scripts that need date calculations or calendar conversions, and as such they are highly pipe-able and modeled after their well-known cousins (e.g. dtest vs. test, or dgrep vs. grep).
| Tags | shell date calculation Utilites Command Line Time Conversion Calendar C Library |
|---|---|
| Licenses | BSD Three-Clause |
| Operating Systems | POSIX |
| Implementation | C |
| Translations | English |
Recent releases


Release Notes: This is a bugfix release. It adds the special output formats "jdn" and "ldn" for julian/lilian day numbers. Multiple occurrences of date/times within one line are now all processed rather than only the first occurrence. A zone difference specifier (%Z) is now supported for parsing and printing. The matlab zone converter tzconv has been added. Building with icc 13 works now. Many gcc warnings are fixed.


Release Notes: This is a bugfix and feature release. For features, ISO 8601 week dates are now first class objects (of type DT_YWD), a %rY specifier denotes years in calendars which deviate from the Gregorian year, and dgrep now accepts shorthand inputs (today, now, etc.) and inputs as specified by -i. For bugfixes, dadding months and years to YMCW dates now works, zoneinfo files with only transitions in the past are handled properly (bug #10), and dseq with just one argument works properly (story #36051287).


Release Notes: Olson's zoneinfo database files are now checked for at configure time. leap-aware calculations use the shipped leapseconds file. ddiff and dadd can take leap-second transitions into account. ddiff no longer segfaults when run without arguments. dadd now copes with huge summands and works with ymcw dates. An error in ddiff with negative differences was fixed.


Release Notes: This is a bugfix and feature release. The dadd tool now supports mass-adding durations (from stdin). The ddiff tool is now timezone-aware. The new tool dround has been added to round dates or times or date-times to the next occurrence of what's given as round-spec. ddiff without arguments no longer segfaults. dadd now copes with huge summands.


Release Notes: The distinction between binaries for date, time, and date-time processing has been cleared up by a unified set of tools, prefixed with "d". All tools now fully cope with dates, times, and date-times. Virtual timezones have also been added (e.g., "GPS" or "TAI").
Recent comments
23 Jul 2012 13:57
I uploaded dateutils-0.2.2fix1.tar.xz to the github downloads section. Builds with -pedantic compilers should go through now.
23 Jul 2012 12:51
What I mean is the following construct:
static char foo[];
static char foo[] = "0123";
23 Jul 2012 12:49
Yeah, sorry. I should have mentioned somewhere that I strictly need a C99 or C11 compiler. gcc's '-pedantic' is, well, pedantic and does not allow the a static array declaration with omitted bounds to decay to a pointer.
23 Jul 2012 07:36
OK, it's because of the '-pedantic' flag. thanks.
22 Jul 2012 08:28
How are the array declarations in /lib/date-core-strpf.h supposed to work?
I keep getting 'array size missing' errors.
Thanks.