Re: Show me locale fomats

2009-06-24 Thread Dotan Cohen
2009/6/24 Osamu Aoki : > On Tue, Jun 23, 2009 at 05:34:08PM +0300, Dotan Cohen wrote: >> On a Debian system how can the user see what his locale configuration >> configures? For instance, I know that if a user has: >> LC_TIME="en_US.UTF-8" >> then his date format is mm/dd/ however where can I s

Re: Show me locale fomats

2009-06-24 Thread Osamu Aoki
On Tue, Jun 23, 2009 at 05:34:08PM +0300, Dotan Cohen wrote: > On a Debian system how can the user see what his locale configuration > configures? For instance, I know that if a user has: > LC_TIME="en_US.UTF-8" > then his date format is mm/dd/ however where can I see that? How > can I get the

Re: Show me locale fomats

2009-06-23 Thread Kelly Clowers
2009/6/23 Dotan Cohen : >> Normally you don't need to know.  You use strptime(3) to print the >> date and/or time.  For example, strptime("%c", ...).  The manual >> page will give you the detail. >> >> To get the format string, do: >> locale -k d_fmt >> d_fmt="%d/%m/%y" >> (en_GB) >> >> A list of k

Re: Show me locale fomats

2009-06-23 Thread Florian Kulzer
On Tue, Jun 23, 2009 at 17:52:01 +0100, Roger Leigh wrote: > On Tue, Jun 23, 2009 at 07:24:54PM +0300, Dotan Cohen wrote: [...] > > I see, thanks. Other than changing my locale to a foreign locale > > (well, ok, US is a foreign locale for me but there is a reason that I > > keep it), is there a w

Re: Show me locale fomats

2009-06-23 Thread Roger Leigh
On Tue, Jun 23, 2009 at 07:24:54PM +0300, Dotan Cohen wrote: > > Normally you don't need to know.  You use strptime(3) to print the > > date and/or time.  For example, strptime("%c", ...).  The manual > > page will give you the detail. > > > > To get the format string, do: > > locale -k d_fmt > > d

Re: Show me locale fomats

2009-06-23 Thread Dotan Cohen
> Normally you don't need to know.  You use strptime(3) to print the > date and/or time.  For example, strptime("%c", ...).  The manual > page will give you the detail. > > To get the format string, do: > locale -k d_fmt > d_fmt="%d/%m/%y" > (en_GB) > > A list of keywords is found in locale(5). >

Re: Show me locale fomats

2009-06-23 Thread Roger Leigh
On Tue, Jun 23, 2009 at 05:17:31PM +0100, Roger Leigh wrote: > On Tue, Jun 23, 2009 at 06:54:34PM +0300, Dotan Cohen wrote: > > > by issuing the locale command. > > > > > > > I mean, let's say that I want -mm-dd date format? What command can > > I give to show me which locale I must configure

Re: Show me locale fomats

2009-06-23 Thread Roger Leigh
On Tue, Jun 23, 2009 at 06:54:34PM +0300, Dotan Cohen wrote: > > by issuing the locale command. > > > > I mean, let's say that I want -mm-dd date format? What command can > I give to show me which locale I must configure to get that format? Normally you don't need to know. You use strptime(3

Re: Show me locale fomats

2009-06-23 Thread Dotan Cohen
> by issuing the locale command. > I mean, let's say that I want -mm-dd date format? What command can I give to show me which locale I must configure to get that format? Sorry for not asking a clear question. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il -- To UNSUBSCRIB

Re: Show me locale fomats

2009-06-23 Thread Ólafur Jens Sigurðsson
On Tue, Jun 23, 2009 at 05:34:08PM +0300, Dotan Cohen wrote: > On a Debian system how can the user see what his locale configuration > configures? For instance, I know that if a user has: > LC_TIME="en_US.UTF-8" > then his date format is mm/dd/ however where can I see that? How > can I get the

Show me locale fomats

2009-06-23 Thread Dotan Cohen
On a Debian system how can the user see what his locale configuration configures? For instance, I know that if a user has: LC_TIME="en_US.UTF-8" then his date format is mm/dd/ however where can I see that? How can I get the system to show that to me? Thanks! -- Dotan Cohen http://what-is-wh