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 reply to Re: convert my date into local time or epoch time
by chrestomanci
in thread convert my date into local time or epoch time
by kaka_2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |