FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour GetFtime() doesn't reflect the correct date Help please
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
GetFtime() doesn't reflect the correct date Help please
Posted: Thu Dec 23, 2010 06:42 PM
Testing getftime() in testfdat.prg.
Got it working but have new issues.
The time is never the time of the file as indicated at the command line.
And sometimes the date is correct and some times it isn't.
And sometimes the date doesn't appear and sometime does.

Using testfdat.prg modified.
Here is my code
Code (fw): Select all Collapse
#include "fileio.ch"
function Main()
   local hFile 
   local aInfo
   local cFile := "gl2.prg"

   hFile := FOpen(cFile)
                
   aInfo = GetFTime( hFile )
   MsgInfo( "Time: " + aInfo[ 1 ] )
   MsgInfo( "Date: " + DToC( aInfo[ 2 ] ) )

   FClose( hFile )
return nil


Using FWH 0908 (sep 2008)

Need a fix.
Thank you

Harvey

Continue the discussion