Loading ...
Sorry, an error occurred while loading the content.

Re: [nslu2-linux] convert date seconds into something english !

Expand Messages
  • Rob Conway
    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 ...
    Message 1 of 3 , Aug 22, 2006
    • 0 Attachment
      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 -----
      Sent: Tuesday, August 22, 2006 10:54 PM
      Subject: Re: [nslu2-linux] convert date seconds into something english !

      Hi.

      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.

      Best regards
      Bengt


      2006/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
      Bengt Bolinder

    Your message has been successfully submitted and would be delivered to recipients shortly.