Locale::Handle::Pluggable::DateTime - Localize DateTime objects with your maketext handles.
package My::I18N; use Moose; extends qw( Locale::Maketext Locale::Handle::Pluggable::DateTime Locale::Handle::Pluggable ); # and then you can use your maketext handle to localize dates too $handle->loc( DateTime->now ); # localizied to $handle's language
This package extends the Locale::Maketext::Pluggable with a variant method for DateTime objects.
If set all DateTime objects being localized will also have their time zone set to this value.
This is a "DateTime::TimeZone" in MooseX::Types::DateTime with coercions enabled.
Adds a variant method that goes to loc_date with DateTime from MooseX::Types::DateTime as the variant.
loc_date
Localize a DateTime object using DateTime::Locale and the handle's language.
To install Locale::Handle::Pluggable, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Locale::Handle::Pluggable
CPAN shell
perl -MCPAN -e shell install Locale::Handle::Pluggable
For more information on module installation, please visit the detailed CPAN module installation guide.