helper

package
v0.0.0-...-93dea64 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Nanosecond  int64 = 1
	Microsecond       = 1000 * Nanosecond
	Millisecond       = 1000 * Microsecond
	Second            = 1000 * Millisecond
	Minute            = 60 * Second
	Hour              = 60 * Minute
)

Variables

This section is empty.

Functions

func DurationToHour

func DurationToHour(d time.Duration) int64

func DurationToMin

func DurationToMin(d time.Duration) int64

func DurationToSecond

func DurationToSecond(d time.Duration) int64

func DurationToTime

func DurationToTime(d time.Duration) (hour, min, sec int64)

func HourToDuration

func HourToDuration(hour int64) time.Duration

func MinToDuration

func MinToDuration(min int64) time.Duration

func SecToDuration

func SecToDuration(sec int64) time.Duration

func TimeToDuration

func TimeToDuration(hour, min, sec int64) time.Duration

Types

This section is empty.

Directories

Path Synopsis
gob

Jump to

Keyboard shortcuts

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