Skip to content

Commit

Permalink
docs: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JonDotsoy authored Oct 28, 2023
1 parent eb3d216 commit 91fd7fd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@ Date format to console.
```shell
Usage: ndate [-] [--zero] [--date-style <full|long|medium|short|none>] [--time-style <full|long|medium|short|none>]
[--hour-cycles <h11|h12|h23|h24|none>] [--time-zone <time-zone>] [--local <locale>]
[--template <template>] [--json] [--utc] [--epoch] [--epoch-ms] [--date <date>]
[--help] [-j] [-d <date>] [-l <locale>] [-tz <time-zone>] [-z] [-h]
[--template <template>] [--json] [--sheet] [--utc] [--epoch] [--epoch-ms]
[--date <date>] [--help] [-j] [-d <date>] [-l <locale>] [-tz <time-zone>]
[-z] [-h]
```

Install with [homebrew](https://brew.sh/):

```shell
brew install jondotsoy/ndate/ndate
brew install jondotsoy/ndate/ndate@0.4
```

Or install with deno:

```shell
deno install --allow-env=TZ,LANG https://deno.land/x/ndate/ndate.ts
deno install --allow-env=TZ,LANG https://deno.land/x/ndate@morgan-v0.4.0-morgan/ndate.ts
```

Samples use:
Expand All @@ -38,6 +39,7 @@ ndate --epoch-ms # 1689255823663
ndate --epoch-ms -z # 1689255823663%
ndate --template '{{utc_full_year}}-{{utc_month:padStart:2:0}}-{{utc_date:padStart:2:0}}' # 2023-06-13
ndate --template '{{YYYY}}{{MM}}{{DD}}{{HH}}{{MM}}{{SS}}{{MS}}' # 202330142030590781
ndate --sheet # =DATE(2023;10;28)+TIME(1;17;12)
```

## Options to `--template`
Expand Down

0 comments on commit 91fd7fd

Please sign in to comment.