File modification time: Difference between revisions

m
→‎{{header|REXX}}: changed/added comments and whitespace, changed indentations.
(→‎{{header|Factor}}: For completeness.)
m (→‎{{header|REXX}}: changed/added comments and whitespace, changed indentations.)
Line 1,076:
{{works with|Regina REXX}}
The REXX language has no facility to update a file's modification time.
<lang rexx>/*REXX program (Regina)obtains toand obtain/displaydisplays a file's time of modification. */
parse arg $ . /*getobtain therequired fileIDargument from the CL.*/
if $=='' then do; say "***error*** no filename was specified."; exit 13; end
q=stream($, 'C', "QUERY TIMESTAMP") /*get file's modmodification time info. */
if q=='' then q="specified file doesn't exist." /*giveset an error indication message. */
say 'For file: ' $ /*display the file ID information. */
say 'timestamp of last modification: ' q /*display the modification time info. */
/*stick a fork in it, we're all done. */</lang>
</lang>
'''output''' &nbsp; when using the file ID for this particular REXX program (source file): &nbsp; <tt> FILEMTIME.REX </tt>
<pre>