From: Jeff King <peff@peff.net>
To: Tuomas Suutari <tuomas.suutari@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH/RFC] New date format: local_original
Date: Wed, 7 Oct 2009 08:54:27 -0400 [thread overview]
Message-ID: <20091007125427.GA20067@coredump.intra.peff.net> (raw)
In-Reply-To: <200910062209.47606.tuomas.suutari@gmail.com>
On Tue, Oct 06, 2009 at 10:09:47PM +0300, Tuomas Suutari wrote:
> Formats date and time with local and original timezone representation
> in same string. They both can be useful at the same time: local
> timezone for relating timestamp to local events, and original timezone
> to see the author's time of the day.
>
> [...]
>
> It was hard to decide whether to use --date=local or --date=iso
> with git log, so I though that maybe I could have them both.
It's not clear to me. Do you really _like_ seeing them both, or did you
simply want to see local dates in the iso format, but those two options
(which are conceptually orthogonal) could not be used at the same time?
If the latter, then maybe we should resurrect the patch that allows
"--date=local --date=iso" to do what you want. From this thread:
http://thread.gmane.org/gmane.comp.version-control.git/112026
If the former, then should the options be orthogonal? That is, should it
be a new format combining the two, or should it be an option to show, in
your preferred format, the time in both local and original time zones?
E.g., something like:
$ git log --date=iso --local-dates-too
commit bf01a69ed40e1afcf56aff143f7523da2ce263ed
Author: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Date: 2009-10-04 00:41:55 +0200
Local: 2009-10-03 17:41:55 -0500
And then you can use it with "normal" dates, iso dates, rfc2822 dates,
etc.
I dunno. I have to admit I never personally really wanted anything
except the default date format, unless I was parsing it for something
special.
-Peff
next prev parent reply other threads:[~2009-10-07 12:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-06 19:09 [PATCH/RFC] New date format: local_original Tuomas Suutari
2009-10-07 12:54 ` Jeff King [this message]
2009-10-07 20:01 ` Junio C Hamano
2009-10-07 23:31 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091007125427.GA20067@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=tuomas.suutari@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).