Locale::Handle::Pluggable::DateTime - Localize DateTime objects with your



NAME

Locale::Handle::Pluggable::DateTime - Localize DateTime objects with your maketext handles.


SYNOPSIS

    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


DESCRIPTION

This package extends the the Locale::Maketext::Pluggable manpage with a variant method for DateTime objects.


ATTRIBUTES

time_zone

If set all DateTime objects being localized will also have their time zone set to this value.

This is a DateTime::TimeZone in the MooseX::Types::DateTime manpage with coercions enabled.


METHODS

loc

Adds a variant method that goes to loc_date with DateTime from the MooseX::Types::DateTime manpage as the variant.

loc_date

Localize a DateTime object using the DateTime::Locale manpage and the handle's language.

 Locale::Handle::Pluggable::DateTime - Localize DateTime objects with your