DateTime::Format::x509 - parse and format x509 type dates
version 0.01
use DateTime::Format::x509; my $f = DateTime::Format::x509->new(); my $dt = $f->parse_datetime('Mar 11 03:05:34 2013 UTC'); # Mar 11 03:05:34 2013 UTC print $f->format_datetime($dt);
This module parses and formats x509 style datetime strings, used in certificates.
Version 1.0.2
parse_datetime($string)
Given an x509 datetime string, this method will return a new DateTime object.
If given an improperly formatted string, this method will die.
format_datetime($datetime)
Given a DateTime object, this method returns an x509 timestamp string.
Andrew Nelson <anelson@cpan.org>
This software is copyright (c) 2012 by Andrew Nelson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install DateTime::Format::x509, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DateTime::Format::x509
CPAN shell
perl -MCPAN -e shell install DateTime::Format::x509
For more information on module installation, please visit the detailed CPAN module installation guide.