manipulating_date_strings
This is an old revision of the document!
Print file modification times:
$filename = "201010211800_a.png"; $mtime = (stat $filename)[9]; chomp($mtime); $mtime_date = `/bin/date --date='Jan 1, 1970 00:00:00 +0000 + $mtime seconds' '+%A, %d %B %Y %H:%M:%S %Z'`; Output is: Thursday, 21 October 2010 22:21:49 UTC
manipulating_date_strings.1287773234.txt.gz · Last modified: 2010/10/22 14:47 by juckins