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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get the Server's Date and Time in FlashFiler

Status
Not open for further replies.

Wavelet

Programmer
Apr 17, 2002
6
I am now learning to use FlashFiler. What I want to do is a client application adds records to the database on a server in another PC within the same local network. Each of the records includes a field that must be filled with the current date and time of the SERVER, not those of the client PC. It seems that I need fetch the date and time from the server before a record is written. How to get them? And is there any way that let the server fill those information automatically when writing the record (as record-writing is accomplished by the server)?
 
If I understand you correct, you want to get the server's date and time and put that into the table, correct?

Just a quick look and I discovered that is depended on the server. There re different APIs for NetWare, Windows, Unix, etc. I've found how to get it from NetWare in C++ and from a Windows server with VB but I didn't have a whole lot of time to look further.

There is no chance the client's time is synced to the server is there?



James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
Thanks 2ffat. Your understanding is correct. I have just found FF2 has such a function: TffSession->GetServerDateTime(TDateTime&) can do what I want.

Thanks for your recommendation of FF2 and I feel it very suitable for my work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top