times

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: GPL-3.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvalidSystemClockErr    = errors.New("invalid system clock,exceed max gap")
	NtpServerNotAvailableErr = errors.New("ntp server not available")
	MaxGapDuration           = 10.0 // seconds

)

Functions

func InvalidSystemClock

func InvalidSystemClock() error

func NetworkTime

func NetworkTime(ntpServer []string) (time.Time, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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