NAME

MooseX::Types::DateTime - DateTime related constraints and coercions for Moose

VERSION

version 0.09

SYNOPSIS

Export Example:

use MooseX::Types::DateTime qw(TimeZone);

has time_zone => (
    isa => TimeZone,
    is => "rw",
    coerce => 1,
);

Class->new( time_zone => "Africa/Timbuktu" );

Namespaced Example:

use MooseX::Types::DateTime;

has time_zone => (
    isa => 'DateTime::TimeZone',
    is => "rw",
    coerce => 1,
);

Class->new( time_zone => "Africa/Timbuktu" );

DESCRIPTION

This module packages several Moose::Util::TypeConstraints with coercions, designed to work with the DateTime suite of objects.

CONSTRAINTS

SEE ALSO

MooseX::Types::DateTime::MoreCoercions

DateTime, DateTimeX::Easy

AUTHOR

Yuval Kogman nothingmuch@woobling.org

John Napiorkowski

COPYRIGHT

Copyright (c) 2008 Yuval Kogman. All rights reserved
This program is free software; you can redistribute
it and/or modify it under the same terms as Perl itself.