logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Test::ScriptAge -- routines relating to the age of Perl scripts

Author

Originally written by Felix Lechner <felix.lechner@lease-up.com> for Lintian.

Description

Routines to calculated modification times of Perl scripts.

Functions

perl_modification_epoch Calculate the time our Perl was last modified. our_modification_epoch Calculate the time our scripts, including all libraries, was last modified.

Name

Test::ScriptAge -- routines relating to the age of Perl scripts

See Also

lintian(1) Lintian v2.122.0ubuntu1 2025-05-01 Test::ScriptAge(3)

Synopsis

my $executable_epoch = Test::ScriptAge::our_modification_epoch(); print encode_utf8('This script was last modified at ' . localtime($executable_epoch) . "\n"); my $perl_epoch = Test::ScriptAge::perl_modification_epoch(); print encode_utf8('Perl was last modified at ' . localtime($perl_epoch) . "\n");

See Also