helpGNU 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...

Submitted by:  Richard Neill <richardneill>
Submitted on:  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>


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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.5