Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Timezone Change with date::manip

Thread Tools

Timezone Change with date::manip

Posts: n/a
I'm writing a program which retrieves data from a 3rd party and
inserts it into a sql database. The data provided has timestamps in
GMT and I want to insert them with both the GMT time and Central time.

I've got everything working right now but when happens when daylight
savings ends? Here's my current code.

use Date::Manip;

my $date = &ParseDate("$gmt_datetime");
$cst_datetime = &Date_ConvTZ($date,"GMT","CDT");

Do I have to change my code to use CST when daylight savings ends or
if there someway to work around this.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
TimeZone change - how to use TimeZone class axrock Java 8 03-25-2009 11:54 PM
TimeZone calculation on Windows Vista with DateTime::TimeZone Ami Perl Misc 5 09-24-2007 07:27 AM
Convert windows TimeZone to Java TimeZone asaf Java 3 09-11-2006 05:40 PM
Help: Change timezone in Tomcat Log Files Java 0 06-29-2006 07:03 PM
change default timezone Remco van 't Veer Ruby 3 11-08-2005 03:15 PM