Apache2::SSI::Datetime - Apache2 SSI Datetime Wrapper
my $finfo = Apache2::SSI::Finfo->new( '/some/file/path/file.txt', apache_request => $r ) || die( Apache2::SSI::Finfo->error ); # File modification time as a Datetime object my $mtime = $finfo->mtime; if( $mtime == $other_object_or_epoch_value ) { # Do something }
v0.1.0
Apache2::SSI::Datetime is a thin wrapper around Datetime to allow Datetime objects to be comparable.
When created, Apache2::SSI::Datetime objects default to an epoch time value when stringified and can be used in comparison.
Jacques Deguest <jack@deguest.jp>
CPAN ID: jdeguest
https://gitlab.com/jackdeguest/Apache2-SSI
Apache2::SSI::Finfo, Apache2::SSI, Datetime
Copyright (c) 2020-2021 DEGUEST Pte. Ltd.
You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.
To install Apache2::SSI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache2::SSI
CPAN shell
perl -MCPAN -e shell install Apache2::SSI
For more information on module installation, please visit the detailed CPAN module installation guide.