On Tue Sep 23 03:15:47 2008, CTBROWN wrote:
Show quoted text> I can't really see why MooseX::Types::DateTime and
> MooseX::Types::DateTimeX should be seperate modules even in the same
> distribution. It would be nice to have these rolled into one.
>
I think the issue here is that the process of parsing the strings into
objects is somewhere subject to ambiguity. Both modules should play
nicely together, you can import DateTime from one and Duration for
another, for example. Also you can switch one for the other based on
need without requiring changes.
MX:T:DateTimeX is a full superset of MX:T:DateTime as well, so if you
use the extended one you can be sure to get all the features.
If there is something that having the design this way is preventing for
you, please let me know. This structure came out of a discussion
between the author of DateTimeX and DateTime as a best compromise.
Thanks!
John Napiorkowski