473,387 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Timezone Change with date::manip

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.
Jul 19 '05 #1
0 3544

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: News M Claveau /Hamster-P | last post by:
Bonjour ! J'ai publié dans "announce", mais, comme cela n'apparaît pas (???), je donne l'adresse ici : http://mclaveau.com/ress/python/zipmci.htm Dans ce gros exemple, il y a, notamment, la...
0
by: blupp | last post by:
Hi, I am trying to install the package, but get the following error: cpan> install Date::Manip Running install for module Date::Manip Running make for S/SB/SBECK/DateManip-5.42a.tar.gz LWP...
2
by: Ming Wei | last post by:
Is there a Date module which I can use to compare Date Strings ? e, g. if I have the following two date strings in different format: Feb 9 15:00 2004/02/18 21:29:05 How do I convert them...
1
by: Yasaswi Pulavarti | last post by:
I have a date in mm/dd/yyyy format in a text file. I am using a perl script to update data into the tables. How can I upload the date in mm/dd/yyyy format into the MySQL native yyyy-mm-dd format...
10
by: Newsscanner | last post by:
Hello, In my MySQL database, one of the fields eople have to fill in is "DOB" (Date of Birth). I have now managed to begin inserting data into my DB via a form, the data type for the DOB field...
4
by: yasaswi | last post by:
Now that MySQL 5.0.15 is production ready, are there any functions to use with mysqlimport, so I can load a string such as, MM/dd/yy, in a text file into a MySQL database as a yyyy-MM-dd date...
5
by: Extremest | last post by:
I have a bunch of dates in a couple different formats. I would like to convert them to epoch. The dates are like this Mon, 12 Jun 2006 09:18:22 GMT 12 Jun 2006 10:37:28 GMT I can do this in...
2
by: year1943 | last post by:
There was the same topic not so long ago, but as I see it stays w/o answer:...
2
by: anderst | last post by:
Hi! I need help with date conversion, I need a perl-script that transform Wed Mar 28 00:00:00 GMT+02:00 2007 to 2007-03-28 I have tried to use perl modules Date::Manip and Date::Calc, but no...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.