FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Timestamp DBF
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM

Timestamp DBF

Posted: Tue Apr 05, 2022 07:03 AM

Good morning,
To determine whether a DBF file has changed, it would be good to determine the date and time of the last change.
It is sufficient to determine the date and time with the dirctory() function?
Is there a function that can access the timestamp in the DBF directly?

Best regards,
Otto

Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM

Re: Timestamp DBF

Posted: Tue Apr 05, 2022 10:35 AM

Try
dbInfo(DBI_LASTUPDATE) --> Returns the last date on which the file was updated
The constants are defined in dbinfo.ch

I believe that it is the same as Same as LUpdate()

Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM

Re: Timestamp DBF

Posted: Tue Apr 05, 2022 08:15 PM
Hello Anser,
Thank you for your help.
I looked into the harbour manual, and it seems that LUpdate only gives back date. I need also time. So, I used directory().

All is working fine.


Best regards to you and your family
Otto

https://mybergland.com/fwforum/timestamp.mp4
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM

Re: Timestamp DBF

Posted: Wed Apr 06, 2022 03:49 AM
Otto wrote:Hello Anser,
Thank you for your help.
I looked into the harbour manual, and it seems that LUpdate only gives back date. I need also time. So, I used directory().

All is working fine.


Best regards to you and your family
Otto

https://mybergland.com/fwforum/timestamp.mp4

Nice to know that you resolved the issue. :-)

Your Web Application developed using ModHarbour looks really good.
Convey our regards to all in your family.

Continue the discussion