git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Nanako Shiraishi <nanako3@lavabit.com>
Cc: Miklos Vajna <vmiklos@frugalware.org>,
	Junio C Hamano <gitster@pobox.com>, Jeff King <peff@peff.net>,
	git@vger.kernel.org
Subject: Re: [PATCH 2/2] Document date formats accepted by parse_date()
Date: Wed, 02 Dec 2009 14:54:40 -0800	[thread overview]
Message-ID: <7v638p9ebz.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <20091203073313.6117@nanako3.lavabit.com> (Nanako Shiraishi's message of "Thu\, 03 Dec 2009 07\:33\:13 +0900")

Nanako Shiraishi <nanako3@lavabit.com> writes:

> Is there something wrong with 'show'?
>
>   nana.git% ./test-date show '2005-04-07T22:13:13'
>   2005-04-07T22:13:13 -> 40 years ago

Heh, you fooled me, and Peff is right.  "test-date show" does not
interpret its input any way other than as seconds-since-epoch.

I agree with the "native->internal" part of the suggestion.  What see by
default in "git show" output is merely the ctime(3) format followed by
timezone.  I don't mind if we call that "git native", even though I
suspect we do _not have to_ invent new word for that.

Also "test-date parse" seems to accept things like these:

    '2009.04.07 20:21:22 -0000'
    '04/07/2009 20:21:22 -0000'
    '07.04.2009 20:21:22 -0000'

  parent reply	other threads:[~2009-12-02 22:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-01  0:27 [PATCH] builtin-commit: add --date option Miklos Vajna
2009-12-02 17:11 ` Miklos Vajna
2009-12-02 17:35   ` Junio C Hamano
2009-12-02 17:55     ` Junio C Hamano
2009-12-02 21:40       ` Miklos Vajna
2009-12-02 19:24     ` Jeff King
2009-12-02 20:33       ` Miklos Vajna
2009-12-02 19:26 ` Jeff King
2009-12-02 19:38   ` Junio C Hamano
2009-12-02 21:07     ` Miklos Vajna
2009-12-02 22:16     ` [PATCH 1/2] " Miklos Vajna
2009-12-02 22:16       ` [PATCH 2/2] Document date formats accepted by parse_date() Miklos Vajna
2009-12-02 22:33         ` Nanako Shiraishi
2009-12-02 22:42           ` Jeff King
2009-12-02 22:54           ` Junio C Hamano [this message]
2009-12-02 23:49             ` [PATCH 2/2 v2] " Miklos Vajna
2009-12-02 22:12   ` [PATCH] builtin-commit: add --date option Miklos Vajna
2009-12-02 22:22     ` 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=7v638p9ebz.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=nanako3@lavabit.com \
    --cc=peff@peff.net \
    --cc=vmiklos@frugalware.org \
    /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).