| Anonymous | Login | Signup for a new account | 2010-02-09 15:01 UTC |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
| ID | Category | Severity | Type | Date Submitted | Last Update | ||||||||
| 0000047 | [1003.1(2008)/Issue 7] Shell and Utilities | Objection | Enhancement Request | 2009-06-25 12:05 | 2009-08-06 00:40 | ||||||||
| Reporter | eblake | View Status | public | ||||||||||
| Assigned To | ajosey | ||||||||||||
| Priority | normal | Resolution | Accepted | ||||||||||
| Status | Resolved | ||||||||||||
| Name | Eric Blake | ||||||||||||
| Organization | BYU | ||||||||||||
| User Reference | |||||||||||||
| Section | date | ||||||||||||
| Page Number | 2575 | ||||||||||||
| Line Number | 82893 | ||||||||||||
| Interp Status | --- | ||||||||||||
| Final Accepted Text | Desired Action | ||||||||||||
| Summary | 0000047: 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). |
||||||||||||
| Tags | No tags attached. | ||||||||||||
| Attached Files | |||||||||||||
|
|
|||||||||||||
| Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |