Timezone Change with date::manip

M

marcie

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,261
Messages
2,571,040
Members
48,769
Latest member
Clifft

Latest Threads

Top