You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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"