ntp

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package ntp provides conversion methods between time.Time and NTP timestamps stored in uint64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToNTP

func ToNTP(t time.Time) uint64

ToNTP converts a time.Time oboject to an uint64 NTP timestamp

func ToTime

func ToTime(t uint64) time.Time

ToTime converts a uint64 NTP timestamps to a time.Time object

Types

This section is empty.

Jump to

Keyboard shortcuts

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