Re: [nslu2-linux] convert date seconds into something english !
- I use unslung 6.8 and "date -D String" seems to be the trick.Did some strange things though with the various commands not working as anticipated.thanks----- Original Message -----From: Bengt BolinderSent: Tuesday, August 22, 2006 10:54 PMSubject: Re: [nslu2-linux] convert date seconds into something english !
You can use the date command. Put a @ in front of the seconds.
I run debian on my NSLU2.
Now it is 1156250724 seconds since 1970-01-01 00:00:00 UTC
try "date -d @1156250724" it prints the date.
else try "man date" or "date --help" or "info date" to give you help on the date command.
Bengt2006/8/22, Rob Conway < rjconway@bigpond. com>:I am logging some data with rrdtool and have time stamps in seconds. How can I convert this time stamp into date:time within a bash script.There must be a command but I've searched and only found include files for "c"cheers from Australia
Med venlig hilsen / best regards