Quantcast
Channel: Product Communities
Viewing all articles
Browse latest Browse all 105279

Forum Post: Re: [V8i mdl] problem with comparing date

$
0
0

Hi Julia,

this would be a pure MDL file time comparism:

...

FindFileInfo *fileInfoP=NULL;
ULong        file1date=0L, file1time=0L, file2date=0L, file2time=0L;
int          fileCount=0;

if (mdlFile_findFiles(&fileInfoP,&fileCount,firstFilename,FF_NORMAL)==SUCCESS && fileCount>0 && fileInfoP!=(FindFileInfo *)NULL){
      file1date= fileInfoP->date;
      file1time= fileInfoP->time;
      free(fileInfoP);
   }

if(mdlFile_findFiles(&fileInfoP,&fileCount,secondFilename,FF_NORMAL)==SUCCESS && fileCount>0 && fileInfoP!=(FindFileInfo *)NULL){
      file2date= fileInfoP->date;
      file2time= fileInfoP->time;
      free(fileInfoP);
   }

if(file2date > file1date || file2time > file1time){

  ... file 2 is newer than file 1...
}

 

HTH,

Willi

 


Viewing all articles
Browse latest Browse all 105279

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>