timeutil

package
v1.5.45 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2018 License: MIT Imports: 2 Imported by: 13

Documentation

Overview

Utilities for messing with time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDuration

func ParseDuration(in string) (time.Duration, error)

Provides an API-compatible version of time.ParseDuration that accepts additional formats for parsing durations:

1y, 3year, 5years: Expands to (n*24*365) hours
1w, 3weeks, 5wks:  Expands to (n*24*7) hours
1d, 1day, 5days:   Expands to (n*24) hours

Types

This section is empty.

Jump to

Keyboard shortcuts

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