delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/28/20:13:49

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Brian Kelly" <brian DOT m DOT kelly AT verizon DOT net>
To: "'Cygwin Mailing list'" <cygwin AT cygwin DOT com>
Subject: RE: localtime() acting like gmtime() in Perl
Date: Sat, 28 Feb 2004 20:13:39 -0500
Message-ID: <039f01c3fe61$43cbac10$6700a8c0@maxstars8g31h2>
MIME-Version: 1.0
In-Reply-To: <404133BC.3070305@physics.ucla.edu>
X-Authentication-Info: Submitted using SMTP AUTH at out004.verizon.net from [141.153.175.68] at Sat, 28 Feb 2004 19:13:37 -0600

A cursory check of the archives would have dug up this exchange:

http://sources.redhat.com/ml/cygwin/2004-02/msg00582.html

Sooo - either try the latest snapshot of the cygwin1.dll, or
wait for release 1.5.8.

And *when* will that be you might ask??

The definitive answer:

http://sources.redhat.com/ml/cygwin/2004-02/msg00716.html

And if that seems a little vague and non-commital (much less helpful),
given that it's only February, you can ponder this:

http://sources.redhat.com/ml/cygwin/2004-02/msg00714.html

Brian Kelly


-----Original Message-----
From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf
Of Charles Plager
Sent: Saturday, February 28, 2004 7:35 PM
To: Cygwin Mailing list
Subject: localtime() acting like gmtime() in Perl

Hello,
	localtime() seems to be returning  GMT instead of the local
time.  I've 
tested the same script on three different machines.  (Unfortunately, on 
linux and sgi, they are using perl 5.6.1 whereas on cygwin, I'm using 
5.8.2, but I don't *think* it's a perl bug).  If I just use 'date', I 
get the correct local time.  Any ideas?

	TIA,
	  Charles

---- script -----
#!/usr/bin/perl

my $localt = localtime();
my $gmt = gmtime();
system "date";
print "local $localt\ngmt $gmt\n";

----- output on cygwin ----
cplager AT pointyjr> testDT.pl
Sat Feb 28 18:31:18 CST 2004
local Sun Feb 29 00:31:17 2004
gmt Sun Feb 29 00:31:17 2004

------ output on linux -----
cplager AT b0dap30> test.pl
Sat Feb 28 18:27:51 CST 2004
local Sat Feb 28 18:27:51 2004
gmt Sun Feb 29 00:27:51 2004




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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019