util

package
v0.18.14 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DayInterval

func DayInterval(t time.Time) (time.Time, time.Time)

DayInterval returns a time interval for 24h

func HourInterval

func HourInterval(t time.Time) (time.Time, time.Time)

HourInterval returns a time interval for an hour

func ParseTime

func ParseTime(src int64) time.Time

ParseTime returns a timestamp from a unix ns epoch

func Percentage

func Percentage(max int, cur int) float64

Percentage returns a percentage value for given inputs

Types

This section is empty.

Jump to

Keyboard shortcuts

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