Help for this page

Select Code to Download


  1. or download this
    $timestamp = POSIX::strftime("%m/%d/%Y %I:%M %p", localtime(( stat $fi
    +les)[9])); # or change localtime to gmtime
    $size = (stat $files)[7];
    
  2. or download this
    # Get both pieces of information we need
    my ($size, $timestamp) =  ((stat $files)[7, 9]);
    # Convert timestamp
    $timestamp = POSIX::strftime("%m/%d/%Y %I:%M %p", localtime($timestamp
    +);