durationx

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OfDays

func OfDays(days int) time.Duration

OfDays create time.Duration from hours

func OfHours

func OfHours(hours int) time.Duration

OfHours create time.Duration from hours

func OfMicros

func OfMicros(micros int) time.Duration

OfMicros create time.Duration from microseconds

func OfMillis

func OfMillis(millis int) time.Duration

OfMillis create time.Duration from milliseconds

func OfMinutes

func OfMinutes(minutes int) time.Duration

OfMinutes create time.Duration from minutes

func OfNanos

func OfNanos(nanos int) time.Duration

OfNanos create time.Duration from nanoseconds

func OfSeconds

func OfSeconds(seconds int) time.Duration

OfSeconds 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