Help us shape the future of Go! Take the 2026 Go Developer Survey

time

package
v0.13.6 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 5 Imported by: 93

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