|
|
从服务器上获得网络时间的几种方法 |
|
|
作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站 |
1. 用Net Time \\server 2. NT平台用Win32 API函数:NetRemoteTOD 3. 用文件的创建时间 在服务器的共享文件夹下创建新文件,取新文件的创建时间。 4. 用HTTP协议头,有服务器的时间 5. 使用Telnet,取返回值 Telnet Server 13 6. 使用数据库 a) Oracle: select sysdate from dual b) Informix: select current() from systables c) Sql Server: select getdate() 7. 使用DCOM Server 创建一个取得服务器时间的DCOM Server,在客户端调用
|
|
相关文章:相关软件: |
|