time

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 86

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDuration

func ParseDuration(duration string) (*time.Duration, error)

ParseDuration parses a duration string and returns the time.Duration

func ParseSince

func ParseSince(duration string) (*time.Time, error)

ParseSince parses a duration string and returns a time.Time in history relative to current time

Types

This section is empty.

Jump to

Keyboard shortcuts

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