Crates.io | tu |
lib.rs | tu |
version | 0.2.0 |
source | src |
created_at | 2024-03-16 14:28:51.962913 |
updated_at | 2024-04-10 17:03:58.817616 |
description | CLI tool to convert a natural language date/time string to UTC |
homepage | |
repository | https://github.com/ad-si/tu |
max_upload_size | |
id | 1175670 |
size | 43,247 |
tu
CLI tool to convert a natural language date/time to UTC.
cargo install tu
Usage: tu <natural time/duration>
Examples:
tu today -> 2024-03-16T12:56:41.905455Z
tu tomorrow -> 2024-03-17T12:56:41.905455Z
tu 2 day -> 2024-03-18T12:56:41.905455Z
tu 9 week -> 2024-05-18T12:56:41.905455Z
tu 1 month -> 2024-04-16T00:00:00Z
This is especially useful in combination with other tools like TaskLite:
# Bash
tasklite add "Buy bike" due:$(tu 2 week)
# Fish
tasklite add "Buy bike" due:(tu 2 week)
when
- Timezone CLI tool.fuzzy-time
- Haskell package for parsing fuzzy time strings.