durationx

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Days added in v1.8.0

func Days(days int) time.Duration

Days create time.Duration from hours

func Hours

func Hours(hours int) time.Duration

Hours create time.Duration from hours

func MicroSeconds added in v1.8.0

func MicroSeconds(micros int) time.Duration

MicroSeconds create time.Duration from micro seconds

func MilliSeconds added in v1.8.0

func MilliSeconds(millis int) time.Duration

MilliSeconds create time.Duration from milli seconds

func Minutes

func Minutes(minutes int) time.Duration

Minutes create time.Duration from minutes

func NanoSeconds added in v1.8.0

func NanoSeconds(nanos int) time.Duration

NanoSeconds create time.Duration from nano seconds

func Seconds

func Seconds(seconds int) time.Duration

Seconds create time.Duration from seconds

Types

This section is empty.

Jump to

Keyboard shortcuts

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