90% there with Reflector code generation!
[catagits/Reaction.git] / lib / Reaction / Types / DateTime.pm
CommitLineData
7adfd53f 1package Reaction::Types::DateTime;
2
e739c9a2 3use MooseX::Types
56c5a4a1 4 -declare => [qw/DateTimeObject SpanSet TimeRangeCollection/];
7adfd53f 5
e739c9a2 6use MooseX::Types::Moose qw/Object ArrayRef/;
7adfd53f 7use DateTime;
8
56c5a4a1 9subtype DateTimeObject,
d9a3266f 10 as Object,
11 where { $_->isa('DateTime') },
12 message { "Must be of the form YYYY-MM-DD HH:MM:SS" };
7adfd53f 13
14use DateTime::SpanSet;
15
d9a3266f 16subtype SpanSet,
17 as Object,
18 where { $_->isa('DateTime::SpanSet') };
7adfd53f 19
d9a3266f 20subtype TimeRangeCollection,
21 as ArrayRef;
7adfd53f 22
231;
24
25=head1 NAME
26
27Reaction::Types::DateTime
28
29=head1 DESCRIPTION
30
31=over
32
33=item * DateTime
34
35=item * DateTime::SpanSet
36
37=item * TimeRangeCollection
38
39=back
40
41=head1 SEE ALSO
42
43=over
44
45=item * L<Reaction::Types::Core>
46
47=back
48
49=head1 AUTHORS
50
51See L<Reaction::Class> for authors.
52
53=head1 LICENSE
54
55See L<Reaction::Class> for the license.
56
57=cut