From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Everyone, please stop making my life more difficult Date: Fri, 12 Sep 2014 15:57:02 +0200 Message-ID: <87ppf1vt5d.fsf@fencepost.gnu.org> References: <20140912043652.4D6D8380604@snark.thyrsus.com> <834mwd8j6a.fsf@gnu.org> <20140912095542.GD32586@thyrsus.com> <83y4tp6sc3.fsf@gnu.org> <20140912104929.GA17830@boo.workgroup> <83wq996lbr.fsf@gnu.org> <87tx4dvuvs.fsf@fencepost.gnu.org> <83tx4d6k6q.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410530256 26535 80.91.229.3 (12 Sep 2014 13:57:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2014 13:57:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 12 15:57:29 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XSRLs-0005Wy-FU for ged-emacs-devel@m.gmane.org; Fri, 12 Sep 2014 15:57:28 +0200 Original-Received: from localhost ([::1]:45150 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSRLn-0004N1-3y for ged-emacs-devel@m.gmane.org; Fri, 12 Sep 2014 09:57:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSRLh-0004Mq-3h for emacs-devel@gnu.org; Fri, 12 Sep 2014 09:57:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSRLe-0008M1-DB for emacs-devel@gnu.org; Fri, 12 Sep 2014 09:57:17 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:47098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSRLe-0008Lx-9z for emacs-devel@gnu.org; Fri, 12 Sep 2014 09:57:14 -0400 Original-Received: from localhost ([127.0.0.1]:52729 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSRLd-0003aZ-GC; Fri, 12 Sep 2014 09:57:13 -0400 Original-Received: by lola (Postfix, from userid 1000) id 792C3E0BD3; Fri, 12 Sep 2014 15:57:02 +0200 (CEST) In-Reply-To: <83tx4d6k6q.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 12 Sep 2014 16:29:49 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174215 Archived-At: Eli Zaretskii writes: >> From: David Kastrup >> Date: Fri, 12 Sep 2014 15:19:35 +0200 >> >> Eli Zaretskii writes: >> >> >> Date: Fri, 12 Sep 2014 12:49:29 +0200 >> >> From: Gregor Zattler >> >> >> >> echo $(date -u --rfc-3339=seconds -d "$(git log -1 --pretty='%ci' >> >> ${1})"|sed -e 's/ /T/' -e 's/+00:00//')Z$(git log -1 --pretty='!%ce' >> >> "${1}") >> > >> > I'm pretty shocked that Git doesn't provide a way to show times in >> > UTC. >> >> TZ=UTC git log --date=local ... > > Thanks, but that's not exactly Git provided option (and is > non-portable). Of course the format %ct is in UTC. It's just the raw number. For formatting times, POSIX provides/prescribes strftime. All the formats in strftime are in local time with the exception of %s (the raw second number in UTC), %z (the numeric timezone) and %Z (the timezone name). Git does offer the --date=raw option that will produce the ilk of commit 85e17384aceddcb761f48f95ee2244a60f9e8408 Author: David Kastrup Date: 1410511700 +0200 Let Lyric_combine_music_iterator use SyllableEvent I am somewhat surprised that you should state that setting TZ to UTC is not going to be portable. Why? -- David Kastrup