timeutil

package
v0.0.56 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

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

ParseTime parses string to time.Duration.

func ParseWithDefault added in v0.0.47

func ParseWithDefault(t string, d time.Duration) time.Duration

ParseWithDefault parses string to time.Duration and returns d when the parse failed.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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