[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Date documentation
From: |
Michael Partridge |
Subject: |
Date documentation |
Date: |
Tue, 12 Oct 2021 10:20:28 -0700 |
Hello,
I am reading the date man page for the first time and it seems that a `+`
must prefix a format string, but this requirement or behavior is not
documented.
Example:
```bash
date "%H:%M"
----
date: invalid date ‘%H:%M’
```
```bash
date "+%H:%M"
----
10:15
```
The only way I found this is through the default format string on the
page linked below.
I think this default format string should appear in the man page as
well.
https://www.gnu.org/software/coreutils/manual/html_node/date-invocation.html#date-invocation
MCP
- Date documentation,
Michael Partridge <=