gontp

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 8 Imported by: 0

README

go-ntp-client

A NTP client package in golang

Based on https://github.com/vladimirvivien/go-ntp-client

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNtpTime

func GetNtpTime(ntpserver string) (now time.Time, er error)

ntpserver like:us.pool.ntp.org

func UpdateSystemDate added in v1.0.1

func UpdateSystemDate(t time.Time) error

Update System Date

Types

This section is empty.

Jump to

Keyboard shortcuts

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