roughtime

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const RecalibrationInterval = time.Hour

Variables

This section is empty.

Functions

func Init

func Init()

func Now

func Now() time.Time

Now returns the current local time given the roughtime offset.

func Offset

func Offset() time.Duration

func Since

func Since(t time.Time) time.Duration

Since returns the duration since t, based on the roughtime response

func Until

func Until(t time.Time) time.Duration

Until returns the duration until t, based on the roughtime response

Types

This section is empty.

Jump to

Keyboard shortcuts

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