Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Tue, 11 Nov 2003 20:42:00 +0800
From: Greg Matheson <lang@ms.chinmin.edu.tw>
To: cygwin@cygwin.com
Subject: Re: perl localtime returns gmttime
Message-ID: <20031111204200.B30234@ms>
Mail-Followup-To: cygwin@cygwin.com
References: <bolti1$12v$1@sea.gmane.org> <2912429468.20031111130327@familiehaase.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <2912429468.20031111130327@familiehaase.de>; from gp@familiehaase.de on Tue, Nov 11, 2003 at 13:03:27 +0100
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id hABCY6xr028135

On Tue, 11 Nov 2003, Gerrit P. Haase wrote:

> Sunday, November 9, 2003, 6:29:09 PM, you wrote:
> 
> > I have update perl to 5.8.2 .
> > After that i did find symptomatic insane behaviour of "local" function.
> > Now it returns GMT time.

> Yes, it is wrong here too.
> 
> > --------------------------------------------------------------------
> > $perl -e 'use POSIX qw(strftime); $now_string = strftime ("%a %b %e 
> > %H:%M:%S %Y", localtime); print $now_string . "\n";'
> > Sun Nov  9 15:06:30 2003
> 
> > $ date -R
> > Sun, 09 Nov 2003 17:06:33 +0200
> > --------------------------------------------------------------------
> 
> Can someone with perl 5.8.2 on Linux / perl 5.8.2 on Windows (AS & MinGW)
> try if it is wrong there too, please?

It's OK with MinGW. The date is in Chinese, however.

greg@7106 ~/perl-5.8.2
$ ./perl -e 'use POSIX qw(strftime); $now_string = strftime ("%a %b %e
>  %H:%M:%S %Y", localtime); print $now_string . "\n";'
星期二 十一月 
 20:14:44 2003

greg@7106 ~/perl-5.8.2
$ date -R
Tue, 11 Nov 2003 20:15:02 +0800

greg@7106 ~/perl-5.8.2
$ ./perl -v

This is perl, v5.8.2 built for MSWin32-x86-multi-thread

-- 
Greg Matheson, Taiwan

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


