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

Discussion

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:
http://uk2.php.ne ... 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

Richard Neill <richardneill>

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    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.

     

    History

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16-a7ba.
    Corresponding source code