NAME

Class::DateTime - A thin Wrapper for DateTime Object Class

SYNOPSIS

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";

VERSION

v0.1.2

DESCRIPTION

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.

SEE ALSO

Class::Generic, Class::Array, Class::Scalar, Class::Number, Class::Boolean, Class::Assoc, Class::File, Class::DateTime, Class::Exception, Class::Finfo, Class::NullChain, Class::DateTime

AUTHOR

Jacques Deguest <jack@deguest.jp>

COPYRIGHT & LICENSE

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.