docs: add more usage to readme

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
Christina Sørensen 2024-05-10 14:25:20 +02:00
parent 1d8eb97e2a
commit 863ab051e5
Signed by: cafkafk
GPG key ID: 26C542FD97F965CE

View file

@ -1,12 +1,14 @@
# since - calcuate time since rfc3339 timestamp
# since - calcuate time since
This is a rewrite of the `since` bash script into rust. First draft, kinda bad,
made on an airplane without wifi.
This is a rewrite of the `since` bash script into rust.
### usage
For now, only entry as rfc3339 timestamp is supported.
Enter a timestamp in `<hh:mm:ss>` and `<yyyy-mm-dd hh:mm:ss>` as well as RFC 3339
timestamp.
```bash
cargo run -- "2014-11-28T12:00:09Z"
since "2014-11-28T12:00:09Z"
since "2014-11-28 12:00:09"
since "12:00:09"
```