Date: 02-16-2022
Return to Index
created by gbSnippets
'Compilable Example: (Jose Includes)
#Include "win32api.inc"
Function PBMain() As Long
Local tempDir As DirData, temp$, FileTimeNow As Quad
temp$ = Dir$("1.txt",0, To tempDir)
? Str$(AgeOfFile(tempDir.LastWriteTime))
End Function
Function AgeofFile(FT As Quad) As Long
Local FileTimeNow As Quad
GetSystemTimeAsFileTime(ByVal VarPtr(FileTimeNow)) 'returns FileTimeNow
Function = (FileTimeNow - FT) / 10000000
End Function
'gbs_01264
'Date: 05-11-2013
http://www.garybeene.com/sw/gbsnippets.htm