time

package
v0.0.0-...-3d6cc21 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathUseMockTime  = "utils.time.usemocktime"
	PathMockTimeIP   = "utils.time.mocktimeip"
	PathMockTimePort = "utils.time.mocktimeport"
)

Config paths

Variables

This section is empty.

Functions

func After

func After(d time.Duration) <-chan time.Time

func DayProcess

func DayProcess(t time.Time) float64

func Now

func Now() time.Time

func Round

func Round(t time.Time, unit time.Duration) time.Time

Round rounds the given Time t to the Duration unit.

func Since

func Since(t time.Time) time.Duration

func Sleep

func Sleep(d time.Duration)

func YearProcess

func YearProcess(t time.Time) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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