File modification time: Difference between revisions

Content added Content deleted
No edit summary
Line 599: Line 599:
c:\windows\system32\kernel32.dll
c:\windows\system32\kernel32.dll
File last modified: 2016-09-07 05:39 AM
File last modified: 2016-09-07 05:39 AM
</pre>

=={{header|Gambas}}==
<lang gambas>' There is no built in command in Gambas to 'set' the modification time of a file
' A shell call to 'touch' would do it

Public Sub Main()
Dim stInfo As Stat = Stat(User.home &/ "Rosetta.txt")

Print "Rosetta.txt was last modified " & Format(stInfo.LastModified, "dd/mm/yyy hh:nn:ss")

End</lang>
Output:
<pre>
Rosetta.txt was last modified 28/05/2017 16:39:39
</pre>
</pre>