Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Strftime

On Wed, Nov 29, 2000 at 06:20:38PM +1100, Dean Hamstead wrote:
> Is there a %X (where X is a letter) that returns the current
> number of the day of the month including suffix (st, nd, th etc)

Not sure about strftime but the perl date manipulation module has 
this facility although your C program will become rather bloated
calling perl...may be better rolling your own...

(for Debian: apt-get install libdate-manip-perl)

man Date::Manip
%E     day of month with suffix - 1st, 2nd,3rd..