Re: [PATCH] Pretty-print date in 'git log'
- From
- Ray Lee <ray-lk@madrabbit.org>
- Date
- Apr 18, 2005, 19:02 UTC
- Message-ID
- <1113850922.23938.54.camel@orca.madrabbit.org>
- In-Reply-To
- <1113803220.11910.81.camel@localhost.localdomain>
On Mon, 2005-04-18 at 15:46 +1000, David Woodhouse wrote:
> Add tool to render git's "<utcseconds> <zone>" into an RFC2822-compliant > string, because I don't think date(1) can do it.
I admit it's not obvious, but date(1) includes gnu's full date parser, so you can pull stunts like:
ray:~/work/home$ date -ud 'jan 1, 1970 + 1111111111 seconds' Fri Mar 18 01:58:31 UTC 2005 ray:~/work/home$ date -ud 'jan 1, 1970 + 1111111111 seconds + 0800' Fri Mar 18 09:58:31 UTC 2005
Ray