Timestamp DBF

Post Reply
User avatar
Otto
Posts: 6414
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 30 times
Been thanked: 2 times
Contact:

Timestamp DBF

Post by Otto »

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
anserkk
Posts: 1333
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India
Has thanked: 2 times

Re: Timestamp DBF

Post by anserkk »

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
Otto
Posts: 6414
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 30 times
Been thanked: 2 times
Contact:

Re: Timestamp DBF

Post by Otto »

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
anserkk
Posts: 1333
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India
Has thanked: 2 times

Re: Timestamp DBF

Post by anserkk »

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.
Post Reply