durationbin

package
v0.66.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bin

type Bin struct {
	Name     string
	Duration time.Duration
}

func BinFromDuration

func BinFromDuration(d time.Duration) Bin

func YearsBin

func YearsBin(i uint) Bin

type Bins

type Bins []Bin

func BinsDefault

func BinsDefault() Bins

func BuildBinsDefault

func BuildBinsDefault(durs []time.Duration, extLeft, extRight *time.Duration) Bins

func BuildBinsDuration

func BuildBinsDuration(d, extLeft, extRight time.Duration) Bins

func BuildBinsDurationLeftRight

func BuildBinsDurationLeftRight(durLeft, durRight time.Duration) Bins

Jump to

Keyboard shortcuts

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