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 |
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

