File Coverage

lib/Class/DateTime.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 14 14 100.0


line stmt bran cond sub pod time code
1             ##----------------------------------------------------------------------------
2             ## Class Generic - ~/lib/Class/Array.pm
3             ## Version v0.1.2
4             ## Copyright(c) 2022 DEGUEST Pte. Ltd.
5             ## Author: Jacques Deguest <jack@deguest.jp>
6             ## Created 2022/02/27
7             ## Modified 2022/03/07
8             ## All rights reserved
9             ##
10             ## This program is free software; you can redistribute it and/or modify it
11             ## under the same terms as Perl itself.
12             ##----------------------------------------------------------------------------
13             BEGIN
14             {
15             use strict;
16 2     2   1490 use warnings;
  2         8  
  2         57  
17 2     2   10 use parent qw( Module::Generic::DateTime );
  2         7  
  2         62  
18 2     2   12 our $VERSION = 'v0.1.0';
  2         4  
  2         14  
19 2     2   175 };
20              
21             1;
22              
23              
24             =encoding utf8
25              
26             =head1 NAME
27              
28             Class::DateTime - A thin Wrapper for DateTime Object Class
29              
30             =head1 SYNOPSIS
31              
32             use Class::DateTime;
33             use DateTime;
34             my $dt = DateTime->now;
35             my $dt2 = DateTime->now->add( days => 10 );
36             my $a = Class::DateTime->new( $dt );
37             my $b = Class::DateTime->new( $dt2 );
38             my $interval = $b - $a;
39             print $interval->days, "\n";
40              
41             =head1 VERSION
42              
43             v0.1.2
44              
45             =head1 DESCRIPTION
46              
47             This package provides a thin wrapper around DateTime by inheriting from L<Module::Generic::DateTime>. It allows overloaded operations, including subtraction and conversion for L<Storable> or L<JSON>
48              
49             See L<Module::Generic::DateTime> for more information.
50              
51             =head1 SEE ALSO
52              
53             L<Class::Generic>, L<Class::Array>, L<Class::Scalar>, L<Class::Number>, L<Class::Boolean>, L<Class::Assoc>, L<Class::File>, L<Class::DateTime>, L<Class::Exception>, L<Class::Finfo>, L<Class::NullChain>, L<Class::DateTime>
54              
55             =head1 AUTHOR
56              
57             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
58              
59             =head1 COPYRIGHT & LICENSE
60              
61             Copyright (c) 2022 DEGUEST Pte. Ltd.
62              
63             You can use, copy, modify and redistribute this package and associated
64             files under the same terms as Perl itself.
65              
66             =cut