App-Templer
view release on metacpan or search on metacpan
lib/Templer/Plugin/TimeStamp.pm view on Meta::CPAN
#
# Strip leading/trailing whitespace.
#
$ts =~ s/^\s+|\s+$//g;
#
# Get mtime of the source file - if we've not already done so.
#
if ( !$mtime )
{
$mtime = ( stat( $page->source() ) )[9];
}
#
# Store formatted modification time
#
my @mtime = localtime($mtime);
$hash{ $key } = POSIX::strftime $ts, @mtime;
}
}
( run in 1.773 second using v1.01-cache-2.11-cpan-49f99fa48dc )