and it reminded me that I once set off a little golf on that topic. The winner was this (sub) from Jonas Nilsson:@monthPost = ( "-", "st", "nd", "rd", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th", "th", "st" ); $textInput = "$mday$monthPost[$mday]" # etc.
--$_[0]=~/1\d$/?0:qw(0 st nd rd)[$_[0]%10]or'th';
($_='jjjuuusssttt annootthheer pppeeerrrlll haaaccckkeer')=~y/a-z//s;print;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: English Date-Suffixes
by cLive ;-) (Prior) on Nov 04, 2002 at 07:54 UTC | |
by BrowserUk (Patriarch) on Nov 04, 2002 at 19:52 UTC | |
by petral (Curate) on Nov 05, 2002 at 00:45 UTC | |
Re: English Date-Suffixes
by BrowserUk (Patriarch) on Nov 04, 2002 at 05:19 UTC | |
by John M. Dlugosz (Monsignor) on Nov 04, 2002 at 21:32 UTC | |
by BrowserUk (Patriarch) on Nov 04, 2002 at 21:45 UTC | |
by John M. Dlugosz (Monsignor) on Nov 04, 2002 at 21:56 UTC | |
by BrowserUk (Patriarch) on Nov 04, 2002 at 22:42 UTC | |
| |
Re: English Date-Suffixes
by petral (Curate) on Nov 06, 2002 at 16:34 UTC | |
Re: English Date-Suffixes
by petral (Curate) on Nov 07, 2002 at 15:43 UTC | |
by locked_user mtve (Deacon) on Nov 10, 2002 at 09:36 UTC | |
by petral (Curate) on Nov 12, 2002 at 20:07 UTC |