timecop

package
v0.0.0-...-a321ef9 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2016 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Units map[string]*UnitInfo

The defined units

Functions

func GetCommaString

func GetCommaString(time float64, unit string) string

GetCommaString that represents the value and unit

func GetRoundedTime

func GetRoundedTime(time float64, unit string) (newtime float64, newunit string, err error)

GetRoundedTime with best possible unit

Types

type UnitInfo

type UnitInfo struct {
	MinRounded float64
	MaxRounded float64
	Next       string
	NextRatio  float64
	Prev       string
	PrevRatio  float64
}

UnitInfo that describes the bounding box, previous and subsequent unit

Jump to

Keyboard shortcuts

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