Task

Get and set the modification time of a file.




/* File modification times, in Jsi */
 
var fileTime = File.mtime('fileModificationTime.jsi');
puts("Last mod time was: ", strftime(fileTime * 1000));
 
exec('touch fileModificationTime.jsi');
 
fileTime = File.mtime('fileModificationTime.jsi');
puts("Mod time now: ", strftime(fileTime * 1000));