Class::DateTime - A thin Wrapper for DateTime Object Class
use Class::DateTime; use DateTime; my $dt = DateTime->now; my $dt2 = DateTime->now->add( days => 10 ); my $a = Class::DateTime->new( $dt ); my $b = Class::DateTime->new( $dt2 ); my $interval = $b - $a; print $interval->days, "\n";
v0.1.2
This package provides a thin wrapper around DateTime by inheriting from Module::Generic::DateTime. It allows overloaded operations, including subtraction and conversion for Storable or JSON
See Module::Generic::DateTime for more information.
Class::Generic, Class::Array, Class::Scalar, Class::Number, Class::Boolean, Class::Assoc, Class::File, Class::DateTime, Class::Exception, Class::Finfo, Class::NullChain, Class::DateTime
Jacques Deguest <jack@deguest.jp>
Copyright (c) 2022 DEGUEST Pte. Ltd.
You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.
To install Class::Generic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::Generic
CPAN shell
perl -MCPAN -e shell install Class::Generic
For more information on module installation, please visit the detailed CPAN module installation guide.