RosettaCodeData/Task/File-modification-time/Gambas/file-modification-time.gambas
2023-07-01 13:44:08 -04: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