Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>findtime() - get file's time from last findfirst/next()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     findtime() - get file's time from last findfirst/next()
  Usage:    <string> = findtime()
  Params:   none
  Returns:  string equal to the time stamp of the last file found by
            findfirst() or findnext() in the format "HH:MM:SS"

 ---------------------------------- Example ---------------------------------

                 nfiles = filecount("*.dbf")
                 if nfiles > 0
                      declare dbfarray[nfiles]
                      declare dbftimes[nfiles]
                      temp = findfirst("*.dbf")
                      time = findtime()
                      for n = 1 to nfiles
                           dbfarray[n] = temp
                           dbftimes[n] = time
                           temp = findnext()
                           time = findtime()
                      next
                 endif

  Note:     Findtime() should only be used in conjunction with
            findfirst() and findnext(). In order to work correctly,
            you must call findtime() immediately after your call
            to findfirst() or findnext(). findtime() will get the
            the date of the file that findfirst() or findnext()
            just returned. findtime() always assumes that you
            have done a findfirst() or findnext() call first.


See Also: findfirst() filecount() findsize() findnext() finddate()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson