1、假设利用数据库,很容易实现。多数数据库提供了读取服务器系统时间的方法。如MS SQL SERVER,可以通过getdate()来实现。
2、自己编写一个Socket程序,提供时间服务。客户端发出请求读取服务器时间。
3、好象有Time Server,只要安装之后,工作站和服务器时间能够同步。此时只需读客户机时间即可。
2、自己编写一个Socket程序,提供时间服务。客户端发出请求读取服务器时间。
3、好象有Time Server,只要安装之后,工作站和服务器时间能够同步。此时只需读客户机时间即可。
解决方案 »
- 调试时有错误提示,但是执行编译后的exe文件却没错误,不知道哪里的问题
- 在delphi写的程序中如何使用收发并储存email的功能(就相当与outlook的功能)
- 有个问题不知怎么实现
- delphi 不能用了,求救!!!在线
- 欢迎大家提意见,开发一个打印组件
- 我的WinCvs为什么老是出现这样的错误?????in modules file contains infinite loop cvs server
- 请问dxdbgrid中怎样打印表格名。。。。。
- 1.如何实现Adodataset中某一字段的合计,有没有现成的方法调用?
- 关于系统防解密
- 机会只是等待有准备的人?
- 查找网络计算机。
- 关于Delphi的初级问题2....
请教huitor:SYBASE 中的读取服务器系统时间的方法是什么?
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.