Skip to content

darkk/ntp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status GoDoc

ntp

The ntp package is an implementation of a simple NTP client. It allows you to connect to a remote NTP server and request the current time.

To request the current time using version 4 of the NTP protocol, simply do the following:

time, err := ntp.Time("0.pool.ntp.org")

To request the current time along with additional metadata, use the Query function:

response, err := ntp.Query("0.pool.ntp.org", 4)

About

a simple ntp client written in go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%