all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Time zone trouble without time zones being involved
Date: Tue, 17 May 2016 16:57:48 +0200	[thread overview]
Message-ID: <87posk68b7.fsf@web.de> (raw)
In-Reply-To: CAP_d_8VxJP-s5ySg96Z1crc9a4+BqUgXwM-OMjy20eNQ2Ekawg@mail.gmail.com

Yuri Khan <yuri.v.khan@gmail.com> writes:

> 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.

Hmm, I hoped I can do without a shell.


Do you think the unixtime value as printed in

  git log --pretty=format:%ad --date=raw -n1

can be relied on?  Can I ignore the printed time zone delta?


[BTW, the doc of git-log tells that

  --date=raw shows the date in the internal raw Git format %s %z format.

but this seems to be a different %s because raw shows a different time]



Thanks,

Michael.




  reply	other threads:[~2016-05-17 14:57 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
2016-05-17 14:57                   ` Michael Heerdegen [this message]
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=87posk68b7.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=help-gnu-emacs@gnu.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.
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.