| Crates.io | zeitr |
| lib.rs | zeitr |
| version | 0.1.1 |
| created_at | 2025-05-09 09:05:41.785805+00 |
| updated_at | 2025-05-09 09:12:24.759461+00 |
| description | A lightweight time calculation utility for tracking work hours and performing time arithmetic |
| homepage | https://github.com/PlexSheep/zeitr |
| repository | https://github.com/PlexSheep/zeitr |
| max_upload_size | |
| id | 1666702 |
| size | 37,339 |
A simple command-line utility for time calculations, tracking work hours, and performing time arithmetic operations. The name "zeitr" comes from the German word "Zeit" (meaning "time").
cargo install zeitr
git clone https://github.com/PlexSheep/zeitr.git
cd zeitr
cargo build --release
The binary will be available at ./target/release/zeitr.
# Calculate the time span between 9:00 and 17:30
zeitr span 09:00 17:30
# Calculate time span with a 1 hour lunch break
zeitr span 09:00 17:30 -p 01:00
# Short alias
zeitr s 09:00 17:30
# Add 2 hours and 30 minutes to 13:45
zeitr calc 13:45 + 02:30
# Subtract 1 hour and 15 minutes from 17:00
zeitr calc 17:00 - 01:15
# Short alias
zeitr c 09:30 + 01:45
$ zeitr span 09:00 17:30 -p 01:00
Start: 09:00:00
End: 17:30:00
Pause: 01:00:00
================================================================================
Span: 07:30:00
$ zeitr calc 13:45 + 02:30
16:15:00
$ zeitr calc 13:45 + 02:30 + 1:30 + 20:25 + 19:30
09:40:00
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)Distributed under the GPL-3.0 License. See LICENSE for more information.