ntp

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLocalTimeAccurate

func CheckLocalTimeAccurate(ntpServer string) (bool, error)

CheckLocalTimeAccurate returns whether the local clock accurate or not

func CurrentTime

func CurrentTime(ntpServer string) time.Time

CurrentTime return the current time calibrated using ntp server

Types

This section is empty.

Jump to

Keyboard shortcuts

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