DateTime::Moonpig is a thin wrapper around the
DateTime module to fix problems
with that module's design. The main points are:
- Methods for mutating
DateTime::Moonpigobjects in place have been overridden to throw a fatal exception. These include
set_* methods such as
The addition and subtraction operators have been overridden.
DateTime::Moonpigto an integer n returns a new
DateTime::Moonpigequal to a time n seconds later than the original. Similarly, subtracting n returns a new
DateTime::Moonpigequal to a time n seconds earlier than the original.
DateTime::Moonpigs returns the number of seconds elapsed between them. It does not return an object of any kind.
newmethod can be called with a single argument, which is interpreted as a Unix epoch time, such as is returned by Perl's built-in
- A few convenient methods have been added
Please submit bug reports at https://github.com/mjdominus/DateTime-Moonpig/issues .
Please do not submit bug reports at http://rt.cpan.org/ .
Copyright 2010 IC Group, Inc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
LICENSE file for a full statement of your rights under this
Mark Jason DOMINUS,