Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Last modifed

Status
Not open for further replies.

bon011

Programmer
Jun 2, 2002
155
CZ
Hi all,

I have one problem.
I wont to know when was th last modified of file on disk.
I use function adir(myarray,"locker.dbf" )but when I wont to check the time by using: myarray[1,4](Times last modified,character) I cannot compare it with present time. How to do that????

Thanks
 
FileDateTime = CTOT(DTOC(myarray[3])+' '+myarray[4])
lnHour = HOUR(FileDateTime)
lnMinute = MINUTE(FileDateTime)
lnsec = SEC(FileDateTime)

Next, you can compare myarray[3] value with DATE(), and lnHour, lnMinute, lnSec with corresponding values extracted from DATETIME()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top