Cloudflare 中文文档
Time Services
编辑这个页面
跳转官方原文档
Set theme to dark (⇧+D)

Get the Roughtime

The “Hello, world!” of Roughtime is very simple: the client sends a request over UDP to the server and the server responds with a signed timestamp.

You just need the server’s address and public key to run the protocol:

To get started, download and run Cloudflare’s Go client:

​​ Beta notice

Cloudflare Roughtime is currently in beta. As such, our root public key may change in the future. We will keep this page up-to-date with the most current public key.

You can also obtain it programmatically using DNS. For example:

​​ Next steps

Beyond just getting the Roughtime from Cloudflare, you may want to use it to keep your clock in sync.