Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Locale to have the ISO 8601 date format?

1,614 views
Skip to first unread message

David P James

unread,
Nov 4, 2002, 8:40:07 PM11/4/02
to
Vincent Lefevre was roused into action on 2002-11-04 14:22 and wrote:
> What locale should I use to have the ISO 8601 date format?
>

I asked this a while ago and became very frustrated when there was no
obvious locale supporting the international standard of yyyy-mm-dd.
However I did get an answer eventually and it turns out to be contained
in a locale created as a bit of a joke - en_DK - English Denmark!

--
David P. James
4th Year Economics Student
Queen's University
Kingston, Ontario
http://members.rogers.com/dpjames/

The bureaucratic mentality is the only constant in the universe.
-Dr. Leonard McCoy, Star Trek IV


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Vincent Lefevre

unread,
Nov 4, 2002, 8:50:06 PM11/4/02
to
On Mon, Nov 04, 2002 at 20:32:50 -0500, David P James wrote:
> However I did get an answer eventually and it turns out to be contained
> in a locale created as a bit of a joke - en_DK - English Denmark!

I've juste generated it with

localedef -c -i en_DK /usr/share/locale/en_DK

(I hope this is correct), but this doesn't change anything:

$ LC_ALL=en_DK date +%x
11/05/02

Before that, I tried with i18n since /usr/share/i18n/locales/i18n
contains:

% Date formats following ISO 8601
% Appropriate date and time representation (%c)
% "%F %T"
d_t_fmt "<U0025><U0046><U0020><U0025><U0054>"
%
% Appropriate date representation (%x) "%F"
d_fmt "<U0025><U0046>"
%
% Appropriate time representation (%X) "%T"
t_fmt "<U0025><U0054>"
t_fmt_ampm ""

But same problem.

--
Vincent Lefèvre <vin...@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA

Stephen Gran

unread,
Nov 4, 2002, 9:00:13 PM11/4/02
to
This one time, at band camp, Vincent Lefevre said:
> On Mon, Nov 04, 2002 at 20:32:50 -0500, David P James wrote:
> > However I did get an answer eventually and it turns out to be contained
> > in a locale created as a bit of a joke - en_DK - English Denmark!
>
> I've juste generated it with
>
> localedef -c -i en_DK /usr/share/locale/en_DK
dpkg-reconfigure locales, select the local you want, and try it again.
Set LC_TIME to that locale, and it should work.

Steve
--
The trouble is, there is an endless supply of White Men, but there has
always been a limited number of Human Beings.
-- Little Big Man

Vincent Lefevre

unread,
Nov 4, 2002, 9:20:11 PM11/4/02
to
On Mon, Nov 04, 2002 at 20:56:06 -0500, Stephen Gran wrote:
> dpkg-reconfigure locales, select the local you want, and try it again.
> Set LC_TIME to that locale, and it should work.

Thanks, this works.

BTW, how about an iso8601 alias for en_DK or something like that?

Fredrik Staxeng

unread,
Nov 5, 2002, 3:57:49 AM11/5/02
to
Vincent Lefevre <vin...@vinc17.org> writes:

>On Mon, Nov 04, 2002 at 20:56:06 -0500, Stephen Gran wrote:
>> dpkg-reconfigure locales, select the local you want, and try it again.
>> Set LC_TIME to that locale, and it should work.
>
>Thanks, this works.
>
>BTW, how about an iso8601 alias for en_DK or something like that?

I think it should be called international, standard, world, earth,
tellus or something like that :-). Or, if you insist of following
the established pattern, en_STD or en_INT. I don't like en_ISO
though.

English, metric, iso dates, A4, decimal point. In short, the right thing.

--
Fredrik Stax\"ang | rot13: sf...@hcqngr.hh.fr

0 new messages