A NOTE has been added to this issue.
======================================================================
http://austingroupbugs.net/view.php?id=47
======================================================================
Reported By: eblake
Assigned To: ajosey
======================================================================
Project: 1003.1(2008)/Issue 7
Issue ID: 47
Category: Shell and Utilities
Type: Enhancement Request
Severity: Objection
Priority: normal
Status: Resolved
Name: Eric Blake
Organization: BYU
User Reference:
Section: date
Page Number: 2575
Line Number: 82893
Final Accepted Text: Desired Action
Resolution: Accepted
Fixed in Version:
======================================================================
Date Submitted: 2009-06-25 12:05 MST
Last Modified: 2009-06-26 12:04 MST
======================================================================
Summary: Missing specifiers for date utility
Description:
Although the date utility provides an interface similar to the
strftime function, there are several things specified only for the
latter (some with CX shading), which would be useful from a command
line interface. These include: missing specifiers, addition of flags,
addition of minimum field width.
This aardvark only addresses missing specifiers. An alternative
solution might be to couch the entire discussion of the format
argument of the date utility in terms of a call to strftime, so that
the next time the strftime interface is extended, the date utility
implicitly picks up that extension; this would also pick up the '0'
and '+' flags as well as minimum field width.
Desired Action:
At line 82893, insert:
%F Date in the format %Y-%m-%d
%g The last 2 digits of the week-based year (see %V) as a decimal
number [00,99].
%G The week-based year (see %V) as a decimal number (for example,
1977).
At line 82903, insert:
%R Time in the format %H:%M.
At line 82922, insert:
%z The offset from UTC in the ISO 8601:2000 standard format (+hhmm or
-hhmm), or by no characters if no timezone is determinable. For
example, "-0430" means 4 hours 30 minutes behind UTC (west of
Greenwich).
======================================================================
----------------------------------------------------------------------
(0000084) Don Cragun (manager) - 2009-06-26 06:34
http://austingroupbugs.net/view.php?id=47#c84
----------------------------------------------------------------------
Originally reported by ebb9:xxxxxxx
Fri, 9 Jan 2009 21:00:38 GMT
with Subject: Defect in XCU date
Transcribed by Don Cragun from xcubug3.txt ERN 3
Submitter tag "ebb.date"
----------------------------------------------------------------------
(0000085) Don Cragun (manager) - 2009-06-25 12:14
http://austingroupbugs.net/view.php?id=47#c85
----------------------------------------------------------------------
This is an enhancement, and should be added SD5, items for consideration
for the next revision.
It should be noted that the proposed action does not address all the
issues raised in the problem specifications.
----------------------------------------------------------------------
(0000114) wpollock (reporter) - 2009-06-26 12:04
http://austingroupbugs.net/view.php?id=47#c114
----------------------------------------------------------------------
I thought you had agreed to add "%s" to this aardvark? Please consider
re-opening this, and add:
%s The number of seconds since the Epoch, i.e., since 1970-01-01
00:00:00 UTC. (TZ)
|