mainGNU 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

Mon 03 Nov 2008 06:10:02 PM UTC, original submission:  

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:

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 Neill <richardneill>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by richardneill (Submitted the item)

    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

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code