$timestamp = POSIX::strftime("%m/%d/%Y %I:%M %p", localtime(( stat $files)[9])); # or change localtime to gmtime $size = (stat $files)[7]; #### # 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);