On 2006-01-07 20:01:25 +0100 (Sat, Jan), Holly Bostick wrote:
> Willie Wong schreef:
> > On Sat, Jan 07, 2006 at 04:17:11PM +0100, Penguin Lover Holly Bostick
> > squawked:
> > 
> >> (how do you get ls to also include the @#$%#$ *year*??)
> > 
> > 
> > Sorry, couldn't help with the rest of your problem, but I think it is
> >  assumed that ls will display the year only for files older than a
> > year old. Quite clever, in my opinion.
> 
> OK, I see what you mean-- or maybe I don't:
> 
> I see that many files that are more than a year old then are followed by
> the year, but some are not, and some which are less than a year old are
> followed by a year.
> 
> -rw-r--r--   1 motub somegroup    1661 jul 13 13:52 more_what works.txt
> (this must have been created in 2005)
> 
> but this file is less than a year old and is still fully dated:
> 
> -rw-rw-r--   1 motub somegroup     581 jan 31  2005 computeruniverse_rma.txt
> 
> But even leaving aside the inconsistencies (only for the purposes of
> this discussion), this is not the behaviour I expect or in fact desire.
> I normally expect the year to be displayed whenever the current calendar
> year is different from that associated with the file-- thus, if the file
> was created in 2006, I would not expect the year to be shown, but if it
> was created in 2005, I would expect the year to be shown, whether or not
> the current date was one year or more from the month and day that the
> file was created.

It's a matter of taste, but I would rather keep this historical
behaviour. On January the 1st you would see tiestamps from yesterday
similiar to the 'very-old-ones'.

> Rather than go off on a rant, I will ask mildly: is there any way to
> change the default behaviour to more reflect my expected behaviour? Not
> so much asking you to tell me how to do it as asking if those of you who
> have already read man ls whether there is a solution to be found when I
> have the time to read it myself.

info ls, section * Formatting file timestamps::
" A timestamp is considered to be "recent" if it is less than six
months old, and is not dated in the future."

and further:
" For example, `--time-style="+%Y-%m-%d %H:%M:%S"' causes..."

HTH

-- 
No virus found in this outgoing message.
Checked by "grep -i virus $MESSAGE"

Attachment: pgpspS7m4PXuO.pgp
Description: PGP signature

Reply via email to