RosettaCodeData/Task/File-modification-time/Gambas/file-modification-time.gambas
2017-09-25 22:28:19 +02:00

9 lines
290 B
Text

' 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