ntp

package
v5.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package ntp contains functions to encode and decode timestamps to/from the NTP format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(v uint64) time.Time

Decode decodes a timestamp from the NTP format. Specification: RFC3550, section 4

func Encode

func Encode(t time.Time) uint64

Encode encodes a timestamp in the NTP format. Specification: RFC3550, section 4

Types

This section is empty.

Jump to

Keyboard shortcuts

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