duration

package
v0.370.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

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

Types

type Components added in v0.253.0

type Components struct {
	Days    int
	Hours   int
	Minutes int
	Seconds int
}

func ParseComponents added in v0.253.0

func ParseComponents(str string) (*Components, error)

func (Components) Duration added in v0.253.0

func (c Components) Duration() time.Duration

Jump to

Keyboard shortcuts

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