ntp

package
v0.0.0-...-68dcc5d Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package ntp syncs system time with NTP server.

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultNTP    = "/usr/sbin/ntpdate"
	DefaultServer = "time.nist.gov"
)

Functions

func DefaultSync

func DefaultSync() (string, error)

DefaultSync syncs system time with NTP server.

func Sync

func Sync(ntpPath string, server string) (string, error)

Sync syncs system time with NTP server.

sudo service ntp stop
sudo ntpdate time.nist.gov
sudo service ntp start

Types

This section is empty.

Jump to

Keyboard shortcuts

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