timescale

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Relative

func Relative(t time.Duration, scale uint32) int32

Relative converts a sub-second relative time (which may be negative) to a specified timescale

func ToScale

func ToScale(t time.Duration, scale uint32) uint64

ToScale converts a decode time from time.Duration to a specified timescale

Types

This section is empty.

Jump to

Keyboard shortcuts

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