Projects / dateutils


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).

Operating Systems

Recent releases

  •  29 Jan 2014 16:33

    Release Notes: dgrep supports -v|--invert-match like grep. The output specifier %G is supported for compatibility with POSIX. ddiff calculates year-day differences and ISO-week date differences. ddiff output can be zero and space padded through 0 and SPC modifiers. The zoneinfo database on AIX >= 6.1 is taken into account. - ddiff can calculate full year differences. dseq now accepts %W, %V output formats. Builds with clang >= 3.3 work again.

    •  29 Oct 2013 16:54

      Release Notes: -q|--quiet no longer sends some commands into an infinite loop. NetBSD test failures (due to missing leap seconds) were fixed. AIX builds are now supported (getopt_long() is part of the code now). Internally, the test harness was migrated to the cli-testing tool. This fixes an issue when tests are run in directories with odd names (spaces, dollar signs, etc. in the path name).

      •  23 Jul 2013 13:08

        Release Notes: This release fixes issue 18 (long inputs to a short specifier string will yield an error), consuming zone specs (1,200+) in the input via the %Z specifier, and ddiff's stdin stamps undergoing conversion according to --from-zone. It cleans up the distribution for inclusion in Debian.

        •  07 Feb 2013 17:00

          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.

          •  14 Sep 2012 14:30

            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).

            Recent comments

            23 Jul 2012 13:57 hroptatyr

            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 hroptatyr

            What I mean is the following construct:

            static char foo[];
            static char foo[] = "0123";

            23 Jul 2012 12:49 hroptatyr

            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 philomath

            OK, it's because of the '-pedantic' flag. thanks.

            22 Jul 2012 08:28 philomath

            How are the array declarations in /lib/date-core-strpf.h supposed to work?
            I keep getting 'array size missing' errors.


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.