Class-Date-ISO reviews

cpanratings
 

RSS | Module Info | Add a review of Class-Date-ISO

Class-Date-ISO (0.01) *

Rather useless module. Here's an easier way:

use Class::Date;
$Class::Date::DATE_FORMAT = '%Y-%m-%dT%H:%M:%S';

Class-Date-ISO (0.01) ***

It adds an "iso" method to Class::Date which returns an ISO-style string.

But that ability is already in Class::Date. On just needs to set the desired format and use the string method.

I'm rather iffy on the means it uses to add the method to Clas::Date.Rather than inherit the class it specifies a new Class::Date package with the added method. (Admittedly I've never seen this style of adding a method to a class, but it seems dodgy to me.)