Introduction
DateTime::Format::PGN
is a parser and formatter for dates in chess game databases in PGN format. It belongs to the wide scope of the Perl DateTime
class.
Usage
use DateTime::Format::PGN;
my $f = DateTime::Format::PGN->new();
my $dt = $f->parse_datetime( '2004.04.23' );
# 2004.04.23
print $f->format_datetime($dt);
# return a DateTime::Incomplete object:
my $fi = DateTime::Format::PGN->new( { use_incomplete => 1} );
my $dti = $fi->parse_datetime( '2004.??.??' );
# 2004.??.??
print $fi->format_datetime($dti);
For details refer to the documentation delivered with the code or get theREADME file as PDF.
Get code
An installable distribution can be obtained from CPAN
, usually by using the Cpan or cpanminus scripts. The Dist::Zilla
-driven development code can get cloned from GitHub:
$ git clone https://github.com/CarlOrff/DateTime-Format-PGN.git
Issues
If there are any concerns use the CPAN or GitHub trackers.