pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to change mail/thunderbird date format?



On Fri, 22 Aug 2008, Rhialto wrote:
> > I assume you use NetBSD. If so, read the BUGS section of
> > setlocale(3). You're not going to like it. In a nutshell: NetBSD
> > only supports LC_CTYPE (the character encoding) of any locale
> > setting.
>
> I do indeed use NetBSD, and that is indeed very annoying. Thanks
> for the information.

The above is true but on my NetBSD systems I install the attached file
as /usr/share/locale/en_{AU,CA,GB,NZ}.ISO8859-{1,15}/LC_TIME

which then lets me do the following:

city-art% env date +%x
08/22/08
city-art% env LC_TIME=en_NZ.ISO8859-1 date +%x
22/08/08

This is on 4.99.5x systems, not sure if it works on 4.0 or what the 
locale status on current currents is.

cheers
mark
Sun
Mon
Tue
Wed
Thu
Fri
Sat
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
January
February
March
April
May
June
July
August
September
October
November
December
AM
PM
%a %b %e %H:%M:%S %Y
%d/%m/%y
%H:%M:%S
%I:%M:%S %p


Home | Main Index | Thread Index | Old Index