duration

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOverFlow = errors.New(
	"overflow: components like minutes or seconds is bigger than it should be",
)

ErrOverFlow is the error when int components too big like `1:61:00`.

Functions

func Parse

func Parse(s string) (time.Duration, error)

Parse a string like "01:31:41" and go default Duration.String() to time.Duration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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