Re: Date documentation

2023-08-15 Thread Michael Partridge via GNU coreutils General Discussion
Thank you for your response, Berny. It does not specify whether or not the `+` goes outside the double quotes or not. I understand the goal of conciseness, but not at the expense of useful examples. You could change the example to: date "+%T" if you'd like. The point is, no example shows

Re: Date documentation

2023-08-15 Thread Bernhard Voelker
On 7/15/23 00:35, Michael Partridge via GNU coreutils General Discussion wrote: Could you add the following to the example to the man page: ```txt Show the current date and time using a custom format $ date "+%Y-%m-%d %H:%M" ``` IMO this is already explained: date [OPTION]...

Re: Date documentation

2023-07-14 Thread Michael Partridge via GNU coreutils General Discussion
After a long time, I encountered this problem again. Could you add the following to the example to the man page: ```txt Show the current date and time using a custom format $ date "+%Y-%m-%d %H:%M" ``` Feel free to edit wording. MCP On Tue, Oct 12, 2021 at 2:00 PM Michael Partridge

Re: Date documentation

2021-10-12 Thread Michael Partridge
> It is, although you may have missed it. Yes I definitely did, thank you. I replied solely to Glenn instead of reply all. My apologies. > > > > I think this default format string should appear in the man page as > > well. > > It already does (since the man page is generated from the --help

Re: Date documentation

2021-10-12 Thread Eric Blake
On Tue, Oct 12, 2021 at 10:20:28AM -0700, Michael Partridge wrote: > 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. It is, although you may have missed it. $ date --help |head

Date documentation

2021-10-12 Thread Michael Partridge
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