You could use a log on script, and use "NET TIME [\\SERVER-NAME] /SET /YES".
This will set the Workstation time to Server time at logon.
Or run the command anytime to synchronise.

Dave.

-----Original Message-----
From: Leigh Wanstead [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 7 March 2000 5:52 
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Server time


Dear Cheng,

> I think the solution would be to use the server time for all. Could anyone
> help me on how to get timestamp from server? or any other suggestions?

What kind of server you talk about? If you use SQL server,  you can get time
from store procedure, every database application can use that time, if you
do not have server, you may use WinShoes to develop a simple TCP server to
send server local time to workstation while workstation request it.

Best Regards
Leigh Wanstead

----- Original Message -----
From: Cheng Wei <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sent: Tuesday, February 08, 2000 12:25
Subject: [DUG]: Server time


> Hi all,
>
> I'm currently developing a time recording app to be used in the factory
> environment, the DB resides in a central server with several workstations
> connect to it. The workers record their activities via the workstations.
> Some of the job items are budgeted and budgeted time can be as less as 5
> minutes, therefore the accuracy of time records are significant.
>
> Because the time settings are usually vary from wkstation to wkstation, so
> if someone started a job item from one machine and then claim it from
> another, the duration (the different between timestamp value) won't be
> accurate.
>
> I think the solution would be to use the server time for all. Could anyone
> help me on how to get timestamp from server? or any other suggestions?
>
> Thanks
>
> Cheng
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to