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 SkipVought 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
Nov 8, 2004
14
0
0
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

 
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?
 
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
 
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