Kbase 22095: How to Synchronize Client's Time to the Server's (Windows)
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  03/07/2002 |
|
SUMMARY:
Sometimes you might need to synchronize your client sessions & terminals to your Server?s time. This can be accomplished by using the DOS time command and the SESSION:TIME-SOURCE attribute. This fetches the current time of the server that is hosting the database and makes it available in the current session. Then, using the DOS command, you can set the time of the client to match.
SOLUTION:
Example:
SESSION:TIME-SOURCE = "sports2000".
DEF VAR X AS CHARACTER.
ASSIGN X = "Time " + string(TIME, "HH:MM:SS").
DOS SILENT VALUE(X).