add date humanize command (#3833)

* add `date humanize` command

* add docs
This commit is contained in:
Kat Marchán
2021-07-24 22:33:31 -07:00
committed by GitHub
parent e6af7f75a1
commit fcd624a722
4 changed files with 108 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# date humanize
Print a 'humanized' format for the date, relative to now.
## Usage
```shell
> date humanize
```
## Flags
* -h, --help: Display this help message
* -t, --table: print date in a table
## Examples
Format the current date
```shell
> date now | date humanize
```
Format the current date and print in a table
```shell
> date now | date humanize -t
```