- SEE ALSO
- COPYRIGHT AND LICENCE
MooseX::Types::DateTime - DateTime related constraints and coercions for Moose
use MooseX::Types::DateTime qw(TimeZone); has time_zone => ( isa => TimeZone, is => "rw", coerce => 1, ); Class->new( time_zone => "Africa/Timbuktu" );
use MooseX::Types::DateTime; has time_zone => ( isa => 'DateTime::TimeZone', is => "rw", coerce => 1, ); Class->new( time_zone => "Africa/Timbuktu" );
A class type for DateTime.
A class type for DateTime::Duration
Uses "new" in DateTime::Duration and passes the number as the
Note that due to leap seconds, DST changes etc this may not do what you expect. For instance passing in
86400is not always equivalent to one day, although there are that many seconds in a day. See "How Date Math is Done" in DateTime for more details.
Calls "new" in DateTime::Duration with the hash entries as arguments.
The string is treated as a language tag (e.g.
he_IL) and given to "load" in DateTime::Locale.
- from Locale::Maktext
Locale::Maketext/language_tagattribute will be used with "load" in DateTime::Locale.
A class type for DateTime::TimeZone.
There is also a mailing list available for users of this distribution, at http://lists.perl.org/list/moose.html.
There is also an irc channel available for users of this distribution, at irc://irc.perl.org/#moose.
יובל קוג'מן (Yuval Kogman) <firstname.lastname@example.org>
Karen Etheridge <email@example.com>
Dagfinn Ilmari Mannsåker <firstname.lastname@example.org>
Florian Ragwitz <email@example.com>
John Napiorkowski <firstname.lastname@example.org>
Shawn M Moore <email@example.com>
Dave Rolsky <firstname.lastname@example.org>
COPYRIGHT AND LICENCE
This software is copyright (c) 2008 by יובל קוג'מן (Yuval Kogman).
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.