File modification time: Difference between revisions

m
no edit summary
m (added whitespace before the TOC (table of contents), added a ;Task: (bold) header.)
mNo edit summary
Line 1,253:
 
There are, of course, other ways to do both tasks -- for example, one could use <code>ls -l --time-style=full-iso</code> and then process the resulting list with some other tool (e.g. [[awk]] or [[Perl]]).
 
=={{header|Ursa}}==
{{works with|Cygnus/X Ursa}}
<lang ursa>decl java.util.Date d
decl file f
 
f.open "example.txt"
d.setTime (f.lastmodified)
out d endl console
 
f.setlastmodified 10</lang>
 
=={{header|VBScript}}==
Anonymous user