dateutils is a collection of command line utilities for working with dates, times, and date-time values in the shell.
The project provides dedicated tools for tasks such as arithmetic, comparison, sorting, sequence generation, parsing, timezone conversion, and calendar conversion, making it useful for scripting, data processing, and other workflows that need fast, repeatable date handling.
This is free and open source software.
Key Features
- Provides separate utilities including dateadd, dateconv, datediff, dategrep, dateround, dateseq, datesort, datetest, datezone, and strptime.
- Adds or subtracts durations from dates, times, and date-time values.
- Generates chronological sequences of dates or times with options such as skipping specific weekdays.
- Converts between calendric representations and performs bulk timezone conversions.
- Calculates differences between dates and times with configurable output formats.
- Sorts date and time values chronologically and compares them in shell scripts.
- Extracts and converts date or time occurrences from input streams.
- Supports leap-second aware calculations.
Website: github.com/hroptatyr/dateutils
Support:
Developer: Sebastian Freundt
License: BSD 3-Clause License
dateutils is written in C. Learn C with our recommended free books and free tutorials.
Related Software
| Alternatives to date | |
|---|---|
| datemath | Date and time math utility |
| rdate | Retrieve date and time from other machines |
| qtime | Clock coded in Rust |
| hodie | The classic Latin replacement for date |
| bttf | datetime arithmetic, parsing, formatting |
| dateutils | Collection of command line utilities |
| dtg | date/time CLI utility and library |
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.