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: NonePriority: 5 - Normal
Severity: 1 - WishStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating 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
  • -unavailable- added by richardneill (Submitted the item)

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1