duration

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 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.

func ParseOmitError added in v0.25.5

func ParseOmitError(s string) 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