Python3写的SNTP/NTP协议的客户端实现

时间:2014-07-03 15:47:37
【文件属性】:
文件名称:Python3写的SNTP/NTP协议的客户端实现
文件大小:17KB
文件格式:PY
更新时间:2014-07-03 15:47:37
SNTP NTP Python 用Python实现时间同步协议NTP/简单时间同步协义SNTP的客户端,内有详细说明。 运行于python 3.2环境,要运行于python2.x,需要用3to2转换。主要是里面有些整数相除的不同。

网友评论

  • python3.4运行,没问题
  • 在3下完全可以使用,太好了
  • 好东西呀,可以用,但是没参数好像
  • 仅一个文件sntpclient.py。还没来得及试用,但可做参考。程序内说明如下: SNTPClient is a class designed to connect to time servers on the Internet and fetch the current date and time. The implementation the the protocol is based on the RFC 2030.
  • python3确实可以用,但是转python2不好整啊,最后另找了个更简单的同步方法