| CPAN Ratings (Gamma) TimeDate reviews | |
| Home | Search | About | Login |
RSS | Module Info | Add a review of TimeDate
4 out of 4 found this review helpful:
A generally useful module that covers a range of date formats, with support provided for a number of languages, by sub-class.
The documentation is apparently somewhat out of date: the POD reads as follwos:
Date::Format->language('German');
will change the language in which all subsequent dates are formatted.
This is only a first pass, I am considering changing this to be
$lang = Date::Language->new('German');
$lang->time2str("%a %b %e %T %Y\n", time);
The methodology considered appears to now be in place, since the object methods described work, and the class method produces:
Can't locate object method "language" via package "Date::Format" ...
Sub-classing to provide support for further languages is a messy business, without suitable docs.
Also be warned that when the module says 'English', it in fact means 'American English.' This should be corrected, since MM/DD/YY is confusing to non-Americans who do not expect it.
The author did not respond to a patch to supply support for Hungarian so it had to be put up by itself.
Lee Goddard - 2006-06-26 09:49:37
Was this review helpful to you?
Yes
No
Lacks the sweeping scope, and breath taking vision of the DateTime project, but this classic Perl module is still an exemplar of the Perl old guard, and a tool I reach for whenever I need to do some quick date hacking. perl -MDate::Parse -MDate::Format -e 'print time2str("%C", str2time($mydate))', is a oneliner I reach for over and over.
kellan - 2003-11-11 09:14:59
Was this review helpful to you?
Yes
No
This is my favorite date distribution. Old faithful. It can handle most date formats I throw at it, it can format it any way I want, and it isn't very slow.
Chris Nandor - 2003-08-25 22:17:58
Was this review helpful to you?
Yes
No
|
Perl.org sites
: bugs
| dev
| history
| jobs
| learn
| lists
| use
Site Information and Contacts |
|