File modification time: Difference between revisions

m
(Initial implementation)
Line 32:
execve output ("/bin/sh", ("sh", "-c", sh cmd), "", output) >= 0
THEN print (output) FI;
get output ("rm -rf fooWTC_1"); CO Ensure file doesn't exist CO
get output ("touch fooWTC_1"); CO Create file CO
get output ("ls -l --time-style=full-iso fooWTC_1"); CO Display its last modified time CO
get output ("touch -t 200109111246.40 fooWTC_1"); CO Change its last modified time CO
get output ("ls -l --time-style=full-iso fooWTC_1") CO Verify it changed CO
</lang>
{{Out}}
<pre>-rw-r--r-- 1 pcl pcl 0 2015-08-10 17:4857:3950.712975830279854695 +0100 fooWTC_1
-rw-r--r-- 1 pcl pcl 0 2001-09-11 12:46:0040.000000000 +0100 fooWTC_1</pre>
 
=={{header|AutoHotkey}}==
Anonymous user