[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `date` and timestamp format

From: Super Pik Master
Subject: Re: `date` and timestamp format
Date: Sun, 02 Oct 2005 16:49:01 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.7.12) Gecko/20050920

I've been trying to print a timestamp format (I mean seconds from 1 Jan 1970) with `date` program from coreutils package.
Look at the info documentation under "Examples of date" in the "date
invocation" section of the manual.

Sorry, my documentation seems to be malformed, as it seems to be the only section missing (the one that was so needed:).

To convert that number back to human readable time use
  date -R -d '1970-01-01 UTC 1128263113 seconds'
  Sun, 02 Oct 2005 08:25:13 -0600

Thanks, it works. The only things I found were some Perl 1-liners, which didn't suit me.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]