Re: Date format of ls -l command

From: Copper, Steve (scopper@WESTERNPOWER.CO.UK)
Date: Fri Apr 30 2004 - 11:54:26 EDT


All,

Just an update on this. It appears that there is a software bug which is
fixed in APAR IY52435.

Cheers
Steve

-----Original Message-----
From: Copper, Steve
Sent: 29 April 2004 15:42
To: 'IBM AIX Discussion List'
Subject: RE: Date format of ls -l command

Christopher and all,

Thanks for the reply. That is another issue I have with the files been dated
in the future, but that is another story at the moment. (My /usr directory
is dated Aug 18 2027 on one test system!)

The LOCALE settings would appear to have no effect on the order as 2 of my
systems have the following LOCALE settings
LANG=en_GB
LC_COLLATE="en_GB"
LC_CTYPE="en_GB"
LC_MONETARY="en_GB"
LC_NUMERIC="en_GB"
LC_TIME="en_GB"
LC_MESSAGES="en_GB"
LC_ALL=

yet one displays the month first and the other displays the date first. It
was looking good up until this point with the USA versus Europe LANG
settings but these 2 systems have just blown that thoery out of the water.

Cheers
Steve

-----Original Message-----
From: cbaker@GOODYEAR.COM [mailto:cbaker@GOODYEAR.COM]
Sent: 29 April 2004 14:31
To: aix-l@Princeton.EDU
Subject: Re: Date format of ls -l command
Importance: High

This email and any files transmitted have been checked by the
MessageLabs Virus Scanning Service for the presence of computer
viruses.

Please exercise caution when receiving any attachment(s) from
unknown sources. If in any doubt, do not open any attachment and
delete the message immediately.

Thank you for your co-operation.
_________________________________________________________________

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 email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

______________________________________________________________________
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