Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime-Locale CPAN distribution.

Report information
The Basics
Id: 78229
Status: resolved
Priority: 0/
Queue: DateTime-Locale

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

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: datetime_formats Method Missing
Date: Thu, 5 Jul 2012 23:15:47 +0200
To: bug-datetime-locale [...] rt.cpan.org
From: "David E. Wheeler" <dwheeler [...] cpan.org>
The DateTime::Locale::Base docs say: Show quoted text
> $locale->datetime_formats() > > Returns a hash reference of CLDR date patterns for the datetime formats, where the keys are "full", "long", "medium", and "short".
However, the method does not seem to be implemented: Show quoted text
> perl -MDateTime -E 'say DateTime->now->locale->datetime_formats'
Can't locate object method "datetime_formats" via package "DateTime::Locale::en_US" at -e line 1. Oversite? FWIW, time_formats and date_formats do exist: Show quoted text
> perl -MDateTime -E 'say DateTime->now->locale->date_formats'
HASH(0x7fb9e92ca6f0) Show quoted text
> perl -MDateTime -E 'say DateTime->now->locale->time_formats'
HASH(0x7fa47baca6f0) Thanks, David