On Monday 14 July 2003 11:00 am, [EMAIL PROTECTED] wrote:
> Date: Mon, 14 Jul 2003 07:04:27 -0400
> To: [EMAIL PROTECTED]
> From: AJ <[EMAIL PROTECTED]>
> Subject: Re: Red Hat 9 Time format
> Reply-To: [EMAIL PROTECTED]
>
>
> Actually, I attempted to change the format to 12-hour in X, and it
> displays the time properly in 12 hour format in the Window Manager,
> however when I use command line utils, such as uptime and even date,
> the time is still in 24 hour format.
> How can I change this system-wide..  hwclock does not seem to work.
> Any suggestions?
>
>
> AJ
>
>
>
> On Sunday 13 July 2003 09:36, AJ wrote this in an attempt to be witty
> and informative:
>
>  > How about without the GUI, I do not use X?
>  > I am looking for what config file stores this parameter.
>
> <snip>
>
>
>  > Perhaps clock is what you are looking for (on the command line,
> type > clock)
>
>
>
>
>
>
>
> --__--__--

man date; man bash

Actually, time is what it is. Period. Time is maintained internally as 
the number of seconds since the Epoch (00:00 UDT 1/1/1970 ) and anything 
that gets used or displayed is derived from that.
If, at the command line you enter "date +%r' '%z' '%D" (w/o the double 
quotes), you'll get the date in this format:

[EMAIL PROTECTED] rj]$ date +%r' '%z' '%D
12:25:18 PM -0500 07/14/03
[EMAIL PROTECTED] rj]$

Or, format it however you want.  Then, if you want to make the change 
"permanent", simply make an alias:

[EMAIL PROTECTED] rj]$ alias date='date +%r" "%z" "%D'

and try it out

[EMAIL PROTECTED] rj]$ date
12:28:39 PM -0500 07/14/03

Now, since that's likely not what you wanted, remove the alias

[EMAIL PROTECTED] rj]$ unalias date

and verify that everything is back as it was when it came from the Redhat 
factory:

[EMAIL PROTECTED] rj]$ date
Mon Jul 14 12:29:03 CDT 2003
[EMAIL PROTECTED] rj]$




-- 
"This boa, the American columns, are being besieged between Basra
and other towns north, west, south and west of Basra....Now even the
American command is under siege. We are hitting it from the north,
east, south and west. We chase them here and they chase us there."
      --Muhammed Saeed al-Sahaf
 
 12:15pm  up 31 days, 17:20,  9 users,  load average: 0.25, 0.38, 0.42
     One billion seconds ago it was 09:28:21 CST Fri 11/05/71

Repeat after me: "The primary purpose of any government
entity is to employ the unemployable."


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to