align

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: AGPL-3.0 Imports: 0 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backward

func Backward(ts uint32, interval uint32) uint32

Backward aligns the ts to the previous ts that divides by the interval, even if it is already aligned

func BackwardIfNotAligned

func BackwardIfNotAligned(ts uint32, interval uint32) uint32

BackwardIfNotAligned aligns the ts to the previous ts that divides by the interval, except if it is already aligned

func Forward

func Forward(ts, interval uint32) uint32

Forward aligns ts to the next timestamp that divides by the interval, even if it is already aligned

func ForwardIfNotAligned

func ForwardIfNotAligned(ts, interval uint32) uint32

ForwardIfNotAligned aligns ts to the next timestamp that divides by the interval, except if it is already aligned

Types

This section is empty.

Jump to

Keyboard shortcuts

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