Timezone Change with date::manip

Discussion in 'Perl' started by marcie, Apr 28, 2004.

  1. marcie

    marcie Guest

    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.
    marcie, Apr 28, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. blupp
    Replies:
    0
    Views:
    999
    blupp
    Jan 15, 2004
  2. asaf
    Replies:
    3
    Views:
    6,131
    =?ISO-8859-1?Q?Arne_Vajh=F8j?=
    Sep 11, 2006
  3. axrock
    Replies:
    8
    Views:
    938
    Roedy Green
    Mar 25, 2009
  4. Louis Erickson
    Replies:
    2
    Views:
    196
    James Willmore
    Sep 3, 2003
  5. Ami
    Replies:
    5
    Views:
    264
Loading...

Share This Page