emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] master 085c7f6 2/2: Test format-time-string with zone


From: Eli Zaretskii
Subject: Re: [Emacs-diffs] master 085c7f6 2/2: Test format-time-string with zone arg
Date: Mon, 01 May 2017 18:02:30 +0300

> From: Ken Brown <address@hidden>
> Date: Sun, 30 Apr 2017 17:28:58 -0400
> 
> On 4/30/2017 4:49 PM, Paul Eggert wrote:
> >
> > What does this shell command do?
> >
> > TZ='NZST-12NZDT,M9.5.0,M4.1.0/3' date address@hidden +'%Y-%m-%d %H:%M:%S %z 
> > (%Z)'
> >
> > On a working system with GNU 'date', it should output this:
> >
> > 1970-01-01 13:00:00 +1300 (NZDT)
> >
> > If it outputs "1970-01-01 12:00:00 +1200 (NZST)" on Cygwin, it's a bug
> > in Cygwin not in Emacs per se.
> 
> It does output "1970-01-01 12:00:00 +1200 (NZST)".

Perhaps that's because the DST beginning in 1970 according to these
rules is before the epoch.  I assume that this does produce "+1300"
offset with Cygwin, does it?

  TZ='NZST-12NZDT,M9.5.0,M4.1.0/3' date -d "Sep 28 1970" +'%Y-%m-%d %H:%M:%S %z 
(%Z)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]