time

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package time provides time functionalities.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidTimePeriod = errors.New("invalid time period")

ErrInvalidTimePeriod indicates that the time input is invalid.

Functions

func Period

func Period(now time.Time, from, to string) (start time.Time, end time.Time, err error)

Period returns a time period from given input.

Types

This section is empty.

Jump to

Keyboard shortcuts

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