SUMMARY: 2.6 timestamps

From: Jonathan.Loh@BankAmerica.com
Date: Thu Jan 29 1998 - 12:05:51 CST


The answer was because times may be different on different machines this
idiosyncracy happens. Solution is to sync the clocks together, with xntp.

Thanks to
david@bae.uga.edu
m.atkinson@csl.gov.uk
jefi@kat.ina.de
levinson@ll.mit.edu
jayl@llaticesemi.com
casper@holland.sun.com

and any other person whose response will appear after this summary is sent
out.

Here's the original question:

     I've noticed something quite odd, when I touch a file, and then do an
ls -l it correctly gives me today date. But if I do an ls -l on it a
couple minutes later the year is replaced with the time. Is this a bug or
a feature of 2.6? and how can I make it so it always reports the time?
Not just after a couple minutes?

--
Jonathan Loh
Systems Engineer
Bank of America

And here is the most detailed response I've got. Jonathan -- To ensure that I understand your circumstances, let's pose a sample run: ========= ========= ========= ========= ========= ========= ========= prompt%> touch some_file prompt%> date Thu Jan 29 09:41:58 EST 1998 prompt%> ls -lF some_file -rw-r--r-- 1 david 0 Jan 29 1998 some_file prompt%> date Thu Jan 29 09:45:00 EST 1998 prompt%> ls -lF some_file -rw-r--r-- 1 david 0 Jan 29 09:41 some_file ========= ========= ========= ========= ========= ========= ========= If this is the case, I would guess that the directory in which you're working is mounted from another machine, whose time is slightly different (faster), and that you're actually doing the ls on different machines. If ls sees a time in the future or more than six months in the past, it will show the year instead of the time (trying to pick the more useful information). The answer, then, is to synchronize your clocks, rather than worry about the behavior of ls.

Now, if this *isn't* the case, or if your machines are synchronized, or if this is all on the same machine using local disk, then I'm flabbergasted and I await your summary :-)

:-D -- David Thorburn-Gundlach * It's easier to fight for one's principles (play) david@bae.uga.edu * than to live up to them. -- fortune cookie (work) david_thorburn-gundlach@groton.pfizer.com Helping out at Pfizer http://www.bae.uga.edu/other/david/



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:30 CDT