The DateTime::Format::PGN module

()

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

Table of contents

Usage

1 use DateTime::Format::PGN; 2 3 my $f = DateTime::Format::PGN->new(); 4 my $dt = $f->parse_datetime( '2004.04.23' ); 5 6 # 2004.04.23 7 print $f->format_datetime($dt); 8 9 # return a DateTime::Incomplete object: 10 my $fi = DateTime::Format::PGN->new( { use_incomplete => 1} ); 11 my $dti = $fi->parse_datetime( '2004.??.??' ); 12 13 # 2004.??.?? 14 print $fi->format_datetime($dti);

For details refer to the documentation delivered with the code or get theREADME file as PDF.

Table of contents

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

Table of contents

Issues

If there are any concerns use the CPAN or GitHub trackers.

Table of contents

words, ≈ characters