Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Simple questions taking my time

1 view
Skip to first unread message

Jose Esoj

unread,
Nov 2, 2011, 4:33:02 PM11/2/11
to
I'm trying to manipulate a time stamp. The original time is UTC and is
stored as 2011-07-24T17:46:33Z. I need to convert this from UTC to the
Olsen zone "America/North_Dakota/Center". I am using the perl module
Date::Manip::Date.

I have tried various scripts

CODE
#!/usr/bin/perl -w
use strict;
use warnings;


use Time::Piece;
use Date::Manip::Date;

my $date = "2011-07-24T17:46:33Z";
my $localzone = "America/North_Dakota/Center";

my $err = $date->convert([$localzone]);

print $err;
/CODE

and I am not getting anywhere to convert this. The desired output is
"2011-07-24 12:46:33 PM CDT"

Any advice?
0 new messages