View Issue Details

IDProjectCategoryView StatusLast Update
0001819Issue 8 draftsShell and Utilitiespublic2024-03-08 18:12
Reporterdannyniu Assigned To 
PrioritynormalSeverityEditorialTypeOmission
Status ClosedResolutionWithdrawn 
Product VersionDraft 4.1 
NameDannyNiu/NJF
Organization<individual>
User Reference202x_d4.1.pdf
Sectiondate
Page Number2770-2775
Line NumberNeeds refactoring.
Final Accepted Text
Summary0001819: Gut of the `date` spec is gone.
DescriptionThe specification of the `date` utility is now missing all those %-format specifiers.
Desired ActionAdd the %-format specifiers and any other what's missing back.
TagsNo tags attached.

Activities

Guy Harris

2024-03-08 03:19

reporter   bugnote:0006713

The `date` page says

When the format is specified, the output shall be formatted as if by strftime() with the specified format string, and a timeptr argument that is the equivalent of localtime(&now) if −u is not specified or gmtime(&now) if −u is specified, where now is an object of type time_t containing the return value of time(0).

This avoids having to keep the `strftime()` page and the `date` page in sync. Given that this is a standard document, rather than a reference manual, that suffices; if a given system wants to offer a date man page that describes the format specifiers, and make sure it's in sync with `strftime()`, they may do so.

dannyniu

2024-03-08 11:51

reporter   bugnote:0006717

Re note-6713,

Fair enough. Sorry for not noticing the "operand" section, I too dislike unnecessary duplication. Please close as rejected.

Issue History

Date Modified Username Field Change
2024-03-08 02:25 dannyniu New Issue
2024-03-08 02:25 dannyniu Name => DannyNiu/NJF
2024-03-08 02:25 dannyniu Organization => <individual>
2024-03-08 02:25 dannyniu User Reference => 202x_d4.1.pdf
2024-03-08 02:25 dannyniu Section => date
2024-03-08 02:25 dannyniu Page Number => 2770-2775
2024-03-08 02:25 dannyniu Line Number => Needs refactoring.
2024-03-08 03:19 Guy Harris Note Added: 0006713
2024-03-08 11:51 dannyniu Note Added: 0006717
2024-03-08 18:12 Don Cragun Status New => Closed
2024-03-08 18:12 Don Cragun Resolution Open => Withdrawn