X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org In-Reply-To: <476328B8.AABBB513@dessent.net> Received: from [89.24.5.17] by email.seznam.cz with HTTP for roman DOT vasicek AT email DOT cz; Sat, 15 Dec 2007 9:43:00 +0100 (CET) Date: Sat, 15 Dec 2007 09:51:17 +0100 (CET) To: cygwin AT cygwin DOT com From: roman DOT vasicek AT email DOT cz Subject: =?us-ascii?Q?Re=3A=20Timezone=20manipulation=20within=20Perl=20script?= Mime-Version: 1.0 Message-Id: <9785.14946-21522-1054927089-1197708677@email.cz> Content-Type: text/plain; charset="iso-8859-2" X-Abuse: helpdesk AT seznam DOT cz X-Seznam-User: roman DOT vasicek AT email DOT cz X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id lBF8pd6Z015014 You are right. Package tzcode was missing. After installing it, timezone conversion script works ok. Output is the the same when running under cygwin and ActiveState perl. Thank you for your help. BTW How should I detect that there is another package required/missing? Roman > ------------ Původní zpráva ------------ > Od: Brian Dessent > Předmět: Re: Timezone manipulation within Perl script > Datum: 15.12.2007 02:05:28 > ---------------------------------------- > roman DOT vasicek AT email DOT cz wrote: > > > I want to ask you how convert time between different timezones in perl script > running under cygwin. I have an application which store datetime information in > Zulu/GMT. I need to provide date in user timezone. How to do the correct > conversion? I want to be able to offer Timezone info like 'Europe/Prague'. > Following code snippet will provide correct output when running under Active > state Perl (time will differ 1 or 2 hours depending on input date), but when > running under cygwin perl no conversion will be done. Can anyone help me? > > The testcase works fine for me as well. You didn't include cygcheck > output, so do you have the tzcode package installed? If not, try > installing it. It should be part of Base now so you should get it > automatically the next time you run setup. > > Brian > > -- > 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/ > > > > -- 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/