Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: "'Cygwin Mailing list'" 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 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit 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/