Sorry for reviving an old thread:

On Thu 10 Jul 2003 15:08:52 NZST +1200, Matthew Gregan wrote:

[Outputting a time_t value to something legible]

> $ date -r 1000000000
> Sun Sep  9 13:46:40 NZST 2001

How do you get this to work?

$ date -r 1000000000
date: 1000000000: No such file or directory
Exit 1

$ date --version
date (coreutils) 4.5.8

In fact, both man date and date --help say

  -r, --reference=FILE      display the last modification time of FILE

I.e. -r does not output a time_t value, it outputs the date of the given
file/dir.

Is there a simple way to convert this time value number into a readable
time (other than by using python, or writing a C wrapper)?

Volker

-- 
Volker Kuhlmann                 is possibly list0570 with the domain in header
http://volker.dnsalias.net/             Please do not CC list postings to me.

Reply via email to