timeutil

package
v1.105.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddJitterToDuration

func AddJitterToDuration(d time.Duration) time.Duration

AddJitterToDuration adds up to 10% random jitter to d and returns the resulting duration.

The maximum jitter is limited by 10 seconds.

func GetLocalTimezoneOffsetNsecs added in v1.97.9

func GetLocalTimezoneOffsetNsecs() int64

GetLocalTimezoneOffsetNsecs returns local timezone offset in nanoseconds.

Types

This section is empty.

Jump to

Keyboard shortcuts

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