From 219da892b271bfe4fc3954078e3e52f6a4dde510 Mon Sep 17 00:00:00 2001 From: Marcelo Goncalves Date: Mon, 30 Sep 2019 22:30:17 -0300 Subject: [PATCH] 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 0000000000..cc1c35bb65 --- /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 +━━━━━━┷━━━━━━━┷━━━━━┷━━━━━━┷━━━━━━━━┷━━━━━━━━┷━━━━━━━━━━ +```