Timestamp DBF

Timestamp DBF

Postby Otto » Tue Apr 05, 2022 7: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6329
Joined: Fri Oct 07, 2005 7:07 pm

Re: Timestamp DBF

Postby anserkk » 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()
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Timestamp DBF

Postby Otto » Tue Apr 05, 2022 8: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6329
Joined: Fri Oct 07, 2005 7:07 pm

Re: Timestamp DBF

Postby anserkk » Wed Apr 06, 2022 3: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.
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 110 guests