Biff is a command line datetime Swiss army knife
3 days ago
- #command-line
- #Rust
- #datetime
- Biff is a command line tool for datetime arithmetic, parsing, and formatting.
- Dual-licensed under MIT or the UNLICENSE.
- User guide recommended for understanding high-level concepts.
- Supports various datetime formats (RFC3339, RFC9557, custom strftime).
- Can print current time, format times, and handle multiple relative times.
- Supports time zone conversion and rounding to nearest increments.
- Allows adding durations to current time (weeks, months, etc.).
- Calculates durations since past dates with precision control.
- Reformats timestamps in log files to local time.
- Generates sequences of dates (e.g., next 5 Mondays, Wednesdays, Fridays).
- Finds last weekdays in upcoming months or second Tuesdays.
- Git integration for sorting and formatting commit dates.
- Precompiled binaries available for Windows, macOS, and Linux.
- Can be installed via `cargo install biff-datetime-cli`.
- Locale support requires enabling the `locale` feature.
- Built on Jiff for datetime logic and ICU4X for localization.
- No compatibility with POSIX `date`; focused on Jiff functionality.
- Built in Rust; supports musl for static Linux binaries.
- Tested with `cargo test` and snapshot testing via `cargo insta`.