all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuri Khan <yuri.v.khan@gmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: Time zone trouble without time zones being involved
Date: Mon, 16 May 2016 22:06:08 +0600	[thread overview]
Message-ID: <CAP_d_8VxJP-s5ySg96Z1crc9a4+BqUgXwM-OMjy20eNQ2Ekawg@mail.gmail.com> (raw)
In-Reply-To: <877feu57iq.fsf@web.de>

On Mon, May 16, 2016 at 9:47 PM, Michael Heerdegen
<michael_heerdegen@web.de> wrote:

> | bash-4.3:micha:test-repo$ git log --pretty=format:%ad --date=format:%s -n1
> | 1463254759
> | bash-4.3:micha:test-repo$ git cat-file commit HEAD
> | tree 45b5897f752b636a5dc6d101cb2a14dba4751cd0
> | parent c56aab0f0de7335ffd579702b987e67ce0680af8
> | author Michael Heerdegen <michael_heerdegen@web.de> 1463251159 +0200
> | committer Michael Heerdegen <michael_heerdegen@web.de> 1463251159 +0200

So, for the time being, as a workaround, you can use something like
"git cat-file commit HEAD | sed -nr 's/^author .* ([0-9]+)
[-+][0-9]+$/\1/p; t'" to get the UTC timestamp from the last commit.



  reply	other threads:[~2016-05-16 16:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-03  6:11 Time zone trouble without time zones being involved Michael Heerdegen
2016-04-03  6:43 ` Yuri Khan
2016-04-13 16:14   ` Michael Heerdegen
2016-04-13 16:48     ` Yuri Khan
2016-04-13 17:16       ` Michael Heerdegen
2016-04-13 17:40         ` Yuri Khan
2016-05-14 18:53           ` Michael Heerdegen
2016-05-14 21:51             ` Yuri Khan
2016-05-16 15:47               ` Michael Heerdegen
2016-05-16 16:06                 ` Yuri Khan [this message]
2016-05-17 14:57                   ` Michael Heerdegen
2016-05-17 15:31                     ` Yuri Khan
2016-05-17 16:19                       ` Michael Heerdegen

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=CAP_d_8VxJP-s5ySg96Z1crc9a4+BqUgXwM-OMjy20eNQ2Ekawg@mail.gmail.com \
    --to=yuri.v.khan@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael_heerdegen@web.de \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.