Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date wrong

Status
Not open for further replies.

Genka28

MIS
Joined
Nov 8, 2004
Messages
14
Location
US
My "date" command produces
"Monday, November 3, 2008 5:17:05 AM EST"
how do I change it to "Mon Nov 3 10:18:16 EST 2008"

Solaris 10

Thank you

 
Thanks I know what the man pages are.
 
I think what Ken was pointing out is that it is clearly explained in the man pages.
Look for the -u switch.
 
I assume you want it for the default date output. Are you setting LC_TIME? What does locale LC_TIME return?
 
echo $LC_TIME
en_US.ISO8859-1
 
Alan "-u" is just a GMT switch
 
My understanding is that LC value should only be the standard date command with Latin characters.

First, is "date" the same as "/usr/bin/date"? Is there an alias for date? (if using csh).

% which date
% alias date

% date
% /usr/bin/date

If these check out, then is there a definition of LC_TIME in /usr/lib/locale/en_US.ISO8859-1? (this is the typical path).





 
Thanks, I unset the LC_DATE variable and it worked.
Thanks for the reply
 
Apologies, maybe I should have read your question properly.;-)
 
Whoops, I think i got the wrong variable. I still don't think it should change the format, so I think (at this point) something has noodled with the locale rules.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top