| Crates.io | tcalc_core |
| lib.rs | tcalc_core |
| version | 0.1.1 |
| created_at | 2025-12-08 08:55:43.75998+00 |
| updated_at | 2025-12-08 10:09:27.854118+00 |
| description | Core library for tcalc-cli crate. |
| homepage | |
| repository | https://github.com/domenicocinque/tcalc |
| max_upload_size | |
| id | 1973010 |
| size | 38,147 |
A CLI for time arithmetic. Inspired by when. Try it online.
Examples:
2023/12/25 - 7d → subtracts 7 days from December 25, 20232am + 30m → adds 30 minutes to 2:00 AMtoday - 2025/12/25 -> days until December 25, 2025Run without installing: cargo run -p cli -- "2am + 30m"
YYYY/MM/DD and can include time as YYYY/MM/DD HH:MM.HH:MM or H[am|pm] forms (2pm → 14:00).today, tomorrow, yesterday, now.y, year, month, day|d, hour|h, minute|m, second|s.+ and -, chaining operations left-to-right (today - 2h + 30m).