From 219da892b271bfe4fc3954078e3e52f6a4dde510 Mon Sep 17 00:00:00 2001 From: Marcelo Goncalves Date: Mon, 30 Sep 2019 22:30:17 -0300 Subject: [PATCH 1/2] Document date command --- docs/commands/date.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 docs/commands/date.md diff --git a/docs/commands/date.md b/docs/commands/date.md new file mode 100644 index 000000000..cc1c35bb6 --- /dev/null +++ b/docs/commands/date.md @@ -0,0 +1,34 @@ +# date + +Use `date` to get the current date and time. Defaults to local timezone but you can get it in UTC too. + +## Flags + + --utc + Returns da current date and time in UTC + + --local + Returns da current date and time in your local timezone + +## Examples + +```shell +> date +━━━━━━┯━━━━━━━┯━━━━━┯━━━━━━┯━━━━━━━━┯━━━━━━━━┯━━━━━━━━━━ + year │ month │ day │ hour │ minute │ second │ timezone +──────┼───────┼─────┼──────┼────────┼────────┼────────── + 2019 │ 9 │ 30 │ 21 │ 52 │ 30 │ -03:00 +━━━━━━┷━━━━━━━┷━━━━━┷━━━━━━┷━━━━━━━━┷━━━━━━━━┷━━━━━━━━━━ +> date --utc +━━━━━━┯━━━━━━━┯━━━━━┯━━━━━━┯━━━━━━━━┯━━━━━━━━┯━━━━━━━━━━ + year │ month │ day │ hour │ minute │ second │ timezone +──────┼───────┼─────┼──────┼────────┼────────┼────────── + 2019 │ 10 │ 1 │ 0 │ 52 │ 32 │ UTC +━━━━━━┷━━━━━━━┷━━━━━┷━━━━━━┷━━━━━━━━┷━━━━━━━━┷━━━━━━━━━━ +> date --local +━━━━━━┯━━━━━━━┯━━━━━┯━━━━━━┯━━━━━━━━┯━━━━━━━━┯━━━━━━━━━━ + year │ month │ day │ hour │ minute │ second │ timezone +──────┼───────┼─────┼──────┼────────┼────────┼────────── + 2019 │ 9 │ 30 │ 21 │ 52 │ 34 │ -03:00 +━━━━━━┷━━━━━━━┷━━━━━┷━━━━━━┷━━━━━━━━┷━━━━━━━━┷━━━━━━━━━━ +``` From 94744c626c438070736be537f58161ab9ef17b2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcelo=20Gon=C3=A7alves?= Date: Tue, 1 Oct 2019 11:21:56 -0300 Subject: [PATCH 2/2] Fix typo in date.cmd --- docs/commands/date.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/commands/date.md b/docs/commands/date.md index cc1c35bb6..4263fd7e3 100644 --- a/docs/commands/date.md +++ b/docs/commands/date.md @@ -5,10 +5,10 @@ Use `date` to get the current date and time. Defaults to local timezone but you ## Flags --utc - Returns da current date and time in UTC + Returns the current date and time in UTC --local - Returns da current date and time in your local timezone + Returns the current date and time in your local timezone ## Examples