1 |
Remy Blank wrote: |
2 |
|
3 |
> Peter Ruskin wrote: |
4 |
> > On Tuesday 05 September 2006 13:17, Remy Blank wrote: |
5 |
> >> I couldn't find an |
6 |
> >> english locale that displays the date as dd.mm.yyyy (though I |
7 |
> >> didn't look for all too long). |
8 |
> > |
9 |
> > $ date |
10 |
> > Tue Sep 5 14:02:19 BST 2006 |
11 |
> > $ echo $LC_TIME |
12 |
> > en_GB.utf8 |
13 |
> |
14 |
> I meant: |
15 |
> |
16 |
> $ LC_TIME=en_US date +%x |
17 |
> 09/05/2006 |
18 |
> |
19 |
> But as Neil already pointed out, en_GB has it the other way round, i.e. |
20 |
> it would print 05/09/06 (I would still prefer 05.09.2006). I just |
21 |
> noticed fr_CH is bad, too: 05. 09. 06 (why do they have these spaces in |
22 |
> there?), de_CH is quite ok: 2006-09-05. But you still get the day and |
23 |
> month names in the respective languages. |
24 |
|
25 |
# egrep "^en" /usr/share/i18n/SUPPORTED >>/etc/locale.gen |
26 |
# locale-gen |
27 |
... |
28 |
|
29 |
# locale -a|grep en|while read loc ; do |
30 |
LC_TIME="$loc" date "+$loc: %A %x"; |
31 |
done | grep Tuesday | grep 05.09.2006 |
32 |
|
33 |
en_BW: Tuesday 05/09/2006 |
34 |
en_BW.utf8: Tuesday 05/09/2006 |
35 |
en_ZA: Tuesday 05/09/2006 |
36 |
en_ZA.utf8: Tuesday 05/09/2006 |
37 |
en_ZW: Tuesday 05/09/2006 |
38 |
en_ZW.utf8: Tuesday 05/09/2006 |
39 |
|
40 |
Alas, no dots. |
41 |
|
42 |
Regards... |
43 |
Michael |
44 |
-- |
45 |
gentoo-user@g.o mailing list |