[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suggested enhancement to du command - show last modified date.

From: Jim Meyering
Subject: Re: Suggested enhancement to du command - show last modified date.
Date: Tue, 07 Jun 2005 08:30:49 +0200

William Brendling <address@hidden> wrote:
>> Doesn't the standard ISO-8601 date format accomplish that, too?
> Quite likely. I will have to find out what the ISO-8601 format is.

date already supports it:

  $ date --iso=s

ls does, too, via --time-style=STYLE.
du's default format needn't include the time zone.

>> It might be nice to have an option that makes it look
>> at atime rather than mtime.
> Yes, I thought of that, but did not need it myself. Would you suggest
> a "--last-accessed" switch as well as "--last-modified", or would it
> be better to have a modifier "--use-time=atime|ctime|mtime"?

Since ls already has related options, it might make sense to
do something similar.  How about dropping the `use-' part of
the option name and making it --time=...?  `use time' or
`time of last use' is a common description of `atime'.

>> It's good to update the --help output and even better to update
>> the primary documentation in the file doc/coreutils.texi.
> I have made an addition to the "--help" output to describe the
> "--last-modified" switch, but not the details of the date formats. I
> have not yet looked at trying to update the other documentation.

You don't have to write much.  Just say du's date format string
is interpreted just like that of the `date' command.

>> Writing ChangeLog entries describing your changes is helpful.
> OK. It may take me a while to do all this.

No problem.  Paperwork usually takes at least a couple weeks.

> Yes, please send me the forms. No promises.

Coming right up.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]