Skip to content

Commit

Permalink
Doc example fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dakrauth committed Feb 6, 2025
1 parent eaf5cc0 commit 8a7c6d9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,10 @@ Output formatting can be configured in multiple ways:
* Use the `--format` option and use formatting pattern (see [Formatting](#formatting) below):

```console
$ WHENFORMAT='%a %b %d %Y %T %!c' when --source Seattle
Tue Feb 04 2025 17:40:09 Seattle, Washington, US, America/Los_Angeles
$ when --format '%a %b %d %Y %T %!c' --source Seattle
Tue Feb 04 2025 17:40:11 Seattle, Washington, US, America/Los_Angeles
```

* Use one of the pre-configured, named formats such as `iso` and `rfc2822`:

```console
Expand All @@ -160,8 +161,8 @@ Output formatting can be configured in multiple ways:
or prepended to the command line command, for instance:

```console
$ when --format '%a %b %d %Y %T %!c' --source Seattle
Tue Feb 04 2025 17:40:11 Seattle, Washington, US, America/Los_Angeles
$ WHENFORMAT='%a %b %d %Y %T %!c' when --source Seattle
Tue Feb 04 2025 17:40:09 Seattle, Washington, US, America/Los_Angeles
```

### Timezones
Expand Down

0 comments on commit 8a7c6d9

Please sign in to comment.