Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime CPAN distribution.

Report information
The Basics
Id: 45503
Status: resolved
Priority: 0/
Queue: DateTime

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.47
Fixed in: 0.48



Subject: Need clear docs about writing a DateTime::Format object.
I went to write a ctime formatter for DateTime and found I couldn't find any documentation about writing a DateTime::Format object! The DateTime documentation talks about DateTime::Format objects, but it never really says what they are. There's no "SEE ALSO" and no information about what methods should be defined. Where is the documentation about writing a DateTime::Format object? DateTime::Format::Builder provides an interface to making them, but only documents the parsing part of it, not the formatting part. And it only documents it in terms of its own builder. There is only one mention, and its buried in the "constructor" docs. The "formatter" can be either a scalar or an object, but the class specified by the scalar or the object must implement a "format_datetime()" method.
Subject: Re: [rt.cpan.org #45503] Need clear docs about writing a DateTime::Format object.
Date: Tue, 28 Apr 2009 08:12:21 -0500 (CDT)
To: Michael G Schwern via RT <bug-DateTime [...] rt.cpan.org>
From: Dave Rolsky <autarch [...] urth.org>
On Tue, 28 Apr 2009, Michael G Schwern via RT wrote: Show quoted text
> any documentation about writing a DateTime::Format object! The DateTime > documentation talks about DateTime::Format objects, but it never really > says what they are. There's no "SEE ALSO" and no information about what > methods should be defined. Where is the documentation about writing a > DateTime::Format object?
http://datetime.perl.org/index.cgi?FormatModules -dave /*============================================================ http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) ============================================================*/