[rhn-users] timestamp needs seconds
Carl G. Riches
cgr at u.washington.edu
Thu Mar 15 23:14:38 UTC 2007
On Thu, 15 Mar 2007, Paula J. Lindsay wrote:
> Hi,
> I have a RHE ws 3. This linux box is connected to an nmr machine which is
> doing experiments with cryonics. When the scientist wants
> to know exactly what time, by seconds, his file was created, he only sees:
>
> --rw-r--r-- 1 root root 0 Mar 20 2006 .fonts.cache-1
> -rw-r--r-- 1 root root 63332 Mar 20 2006 testfile
> -rw-r--r-- 1 root root 43543 Sep 18 2005 last.050918
>
> How can I get the timestamp on the file to read hour:minutes:seconds
> -rw-r--r-- 1 root root 0 Mar 20 12:23:46 2006 phase2
> the minutes and seconds are the most important. I did a man on ls,
> but it didn't have what I needed, at least what I tried.
> Many thanks in advance for your help.
> Paula
>
Do you have the "--full-time" option to your version of ls?
For example:
$ ls --full-time testfile
-rw-r--r-- 1 cgr staff 0 2007-03-15 16:14:11.268683000 -0700 testfile
That looks like time in HH:MM:SS.fraction?
Carl
Carl G. Riches
Software Engineer
Department of Biostatistics
Box 357232 voice: 206-616-2725
University of Washington fax: 206-543-3286
Seattle, WA 98195-7232 internet: cgr at u.washington.edu
More information about the rhn-users
mailing list