in reply to convert my date into local time or epoch time
DateTime::Format::W3CDTF on CPAN can convert that format for you. Then just call epoch() on the resultant DateTime object.
eg:
my $time = DateTime::Format::W3CDTF->parse_datetime("2007-12-24T18:21Z +"); print "epoch time: ".$time->epoch();
In Section
Seekers of Perl Wisdom