1、假设利用数据库,很容易实现。多数数据库提供了读取服务器系统时间的方法。如MS SQL SERVER,可以通过getdate()来实现。
2、自己编写一个Socket程序,提供时间服务。客户端发出请求读取服务器时间。
3、好象有Time Server,只要安装之后,工作站和服务器时间能够同步。此时只需读客户机时间即可。

解决方案 »

  1.   

    补充:SERVER端数据库为SYBASE。
    请教huitor:SYBASE 中的读取服务器系统时间的方法是什么?
      

  2.   

    Sybase也是: select GetDate();用API取:
    The NetRemoteTOD function returns the time of day information from a specified server.Security RequirementsNo special group membership is required to successfully execute NetRemoteTOD.NET_API_STATUS NetRemoteTOD(    LPTSTR UncServerName,
        LPBYTE *BufferPtr
       );
     ParametersUncServerNamePointer to a Unicode string containing the name of the remote server on which the function is to execute. A NULL pointer or string specifies the local computer.BufferPtrOn return a pointer to the return information structure TIME_OF_DAY_INFO is returned in the address pointed to by BufferPtr.