HeadlinesBriefing favicon HeadlinesBriefing.com

New CLI Tool Simplifies Datetime Operations

Hacker News •
×

BurntSushi released bttf, a command line tool for datetime arithmetic, parsing and formatting that aims to improve upon the standard date command. The Rust-based tool offers timezone support, date sequencing, and timestamp reformatting capabilities with an intuitive interface.

Built on the Jiff library with ICU4X for localization, bttf includes unique features like the ability to find and reformat timestamps in log files and generate sequences of specific weekdays. The tool also integrates with git to display file commit dates in tabular format.

The creator developed bttf primarily to expose Jiff's functionality on the command line, finding the standard date command confusing and limited. Unlike date, bttf is not intended as a POSIX-compatible replacement but instead offers improved datetime handling with a more intuitive syntax.