GNU Core Utilities - Support: sr #106540, wish: date should support the...
You are not allowed to post comments on this tracker with your current authentication level.
sr #106540: wish: date should support the english suffices such as 1st, 2nd, 3rd...
Submitter: | Richard Neill <richardneill> | ||
Submitted: | Mon 03 Nov 2008 06:10:02 PM UTC | ||
Category: | None | Priority: | 5 - Normal |
Severity: | 1 - Wish | Status: | None |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Open | Operating System: | GNU/Linux |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
No changes have been made to this item
A small request for enhancement: it would be wonderful if the dates formatted by `date` could include the english language ordinal suffices.
Eg : date -d "$DATE" "+%A, %-d %B %Y"
results in: "Monday, 3 November 2008"
but I'd like to have "Monday, 3rd November 2008" instead.
By way of comparison, PHP uses %j%S to do this:
http://uk2.php.net/manual/en/function.date.php
Of course, there may be some i18n issues, which make this not-quite-trivial to implement; likewise it would be nice if date could recognise the strings with suffices too.
Thanks very much,
Richard