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


Release Notes: This is a bugfix release. It accounts for big-endian machines. GNUisms (mempcpy() and getline()) are removed. inf-loop in tseq is fixed. Nanoseconds are preserved upon time zone conversion.


Release Notes: This is a bugfix release. The code for date addition is refactored, and with it a new duration type, DT_MD, is introduced to capture larger month and day summands. See the info page examples and/or README.


Release Notes: This is a bugfix release. A bit fiddling bug gave erroneous results in "dconv now". Date expressions (for dgrep, et al.) can now be arbitrarily joined with conjunctions (&&) and disjunctions (||), as well as negations (!). See the info page examples and/or README.


Release Notes: This is a bugfix release. Most notably, sloppy date arithmetics have been replaced by correct ones, e.g. 2100 is no longer a leap year, and the 31st of Feb is instantly corrected to 28/29 Feb. Further, the unmaintainable idea of dedicated duration types has been replaced with overloaded dt_d_s types, with the side-effect that adding days or business days to dates now works, and ymcw dates can be properly compared.