ntpdate

package
v3.0.0-...-66753ca Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

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