ntpdate

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2021 License: BSD-3-Clause Imports: 8 Imported by: 2

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL