Find the answer to your Linux question:
Results 1 to 4 of 4
Hi all, I'm wondering if there's an option in the linux command date that will allow me to convert seconds (since 1/1/1970) to a readable format. I know I can ...
  1. #1
    Linux User
    Join Date
    May 2008
    Location
    NYC, moved from KS & MO
    Posts
    251

    How can I convert seconds to date

    Hi all,
    I'm wondering if there's an option in the linux command date that will allow me to convert seconds (since 1/1/1970) to a readable format. I know I can do this easily in FreeBSD, with option -r but I just couldn't find out the equivalent option or command in linux. Anyone got an idea?

    Regards,

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    Google "unix time conversion linux" => Result

  3. #3
    Linux User
    Join Date
    May 2008
    Location
    NYC, moved from KS & MO
    Posts
    251
    That's exactly what I was looking for. Thanks a lot.

  4. #4
    Just Joined!
    Join Date
    Mar 2011
    Posts
    7
    Disapointing to see a response like this. This is a linux answers forum, so suggesting people "google it" is not at all helpful. This forum was the #1 search result on google, for those search terms.

    After searching more helpful forums, I found the answer:

    date -d @1187769064

    Enjoy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...