ntp

package
v0.0.0-...-96bc9f9 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TimeFunc  = NewTime().Now
	NtpServer = "time.google.com"
)

Functions

func After

func After(t time.Time) bool

After returns true if a given time is after the current time

func Before

func Before(t time.Time) bool

Before returns true if a given time is before the current time

Types

type Time

type Time struct {
	// contains filtered or unexported fields
}

Time contains information about the NTP server

func NewTime

func NewTime() *Time

func (*Time) Now

func (c *Time) Now() time.Time

Jump to

Keyboard shortcuts

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