Re: Date format of ls -l command

From: cbaker@GOODYEAR.COM
Date: Thu Apr 29 2004 - 09:30:47 EDT


Steve,

ls -l shows you the date and time of a file if it is less than 6 months old. After that, the time is replaced with the year.

As for your first system, that file is dated in the future [ August of this year ] (assuming your system has the correct date and time
set.). So, it gives the year also, since it is not today or the past six months.

As for the order of date and month, I would suspect that your $LANG or other regional settings do not match. Like English-USA verses
Europe. Sorry, I manage RS/6000 all over world, but we always set them up as we do in USA so I am not sure about the date order
difference.

Christopher M. Baker
Senior Technical Support Analyst
DSE/TCO
Goodyear Tire and Rubber Company

=================================================
Contains Confidential and/or Proprietary Information.
May not be copied or disseminated without the expressed
written consent of The Goodyear Tire & Rubber Company.
=================================================

                      "Copper, Steve"
                      <scopper@WESTERNP To: aix-l@Princeton.EDU
                      OWER.CO.UK> cc: (bcc: Chris Baker/NA/GDYR)
                      Sent by: IBM AIX Subject: Date format of ls -l command
                      Discussion List
                      <aix-l@Princeton.
                      EDU>

                      04/29/04 05:06 AM
                      Please respond to
                      IBM AIX
                      Discussion List

All,

Hopefully a quick question. We have several systems (aix 5L) which when you
do a "ls -l" command the output is as follows

drwxr-xr-x 45 bin bin 1024 Aug 18 2004 usr

and on other systems when you do a "ls -l" the output is as follows

drwxr-xr-x 42 root system 1024 11 Feb 10:14 usr

If you compare the two you will see that the date part on the first one is
in the order "month date year/time" (Aug 18 2004) and the second one the
date format is "date month year/time" (11 Feb 10:14).

Can anyone shed any light as to what is happening here and how we can make
all the systems display the date part in a consistent manner?

Thanks in advance

Steve Copper

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:52 EDT