Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultNTPConfig = "/etc/ntp.conf"
Variables ¶
View Source
var Debug = func(string, ...interface{}) {}
Functions ¶
func SetTime ¶
func SetTime(servers []string, config string, fallback string, setRTC bool) (string, float64, error)
SetTime sets system and optionally RTC time from NTP servers specified in sersers or the config file. If successful, returns the server used to set the time and the offset, in seconds.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.