From 863ab051e5c5610ce1a4cdc1d6323d4aa0c8ed05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christina=20S=C3=B8rensen?= Date: Fri, 10 May 2024 14:25:20 +0200 Subject: [PATCH] docs: add more usage to readme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christina Sørensen --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 97cad41..e15e22b 100644 --- a/README.md +++ b/README.md @@ -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 `` and `` 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" ```