Skip to content

Commit 8a7c6d9

Browse files
committed
Doc example fix
1 parent eaf5cc0 commit 8a7c6d9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,10 @@ Output formatting can be configured in multiple ways:
143143
* Use the `--format` option and use formatting pattern (see [Formatting](#formatting) below):
144144

145145
```console
146-
$ WHENFORMAT='%a %b %d %Y %T %!c' when --source Seattle
147-
Tue Feb 04 2025 17:40:09 Seattle, Washington, US, America/Los_Angeles
146+
$ when --format '%a %b %d %Y %T %!c' --source Seattle
147+
Tue Feb 04 2025 17:40:11 Seattle, Washington, US, America/Los_Angeles
148148
```
149+
149150
* Use one of the pre-configured, named formats such as `iso` and `rfc2822`:
150151

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

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

167168
### Timezones

0 commit comments

Comments
 (0)