dtg is a date and time command line utility with a companion library.
It lets you print the current time or supplied values in multiple output styles, work with UTC, local time, or explicitly selected time zones, and format results with RFC 3339, custom format strings, or named presets. It also includes timezone lookup support and a distinctive base-60 “x” timestamp format.
This is free and open source software.
Key Features
- Formats current or supplied date and time values from the command line.
- Supports UTC, local time, and explicitly selected time zones, including multiple zones at once.
- Offers RFC 3339 output, custom format strings, and named presets.
- Can search and list time zones from the command line.
- Includes continuously updating display modes, with optional screen clearing.
- Provides both a command line crate and a reusable library crate.
- Supports the project’s novel base-60 “x” timestamp format.
Website: github.com/qtfkwk/dtg
Support:
Developer: qtfkwk
License: MIT License

dtg is written in Rust. Learn Rust 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.