Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    my $filename = 'test.log';
    my $epochSecs = (stat($filename))[9];
    print "Date: " . UnixDate( ParseDateString("epoch $epochSecs"), "%Y-%m
    +-%d %T" ) . "\n";