date -d '70-1-1 0:0:1000000000' Sun Sep 9 01:46:40 2001
: ) /cb
Volker Kuhlmann wrote:
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
