time

package
v3.28.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package time wraps "time" and allows for custom implementations of key functions.

Index

Constants

View Source
const (
	Nanosecond  = time.Nanosecond
	Microsecond = time.Microsecond
	Millisecond = time.Millisecond
	Second      = time.Second
	Minute      = time.Minute
	Hour        = time.Hour
)

Variables

This section is empty.

Functions

func After

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

func Now

func Now() time.Time

func SetAfter

func SetAfter(f func(time.Duration) <-chan time.Time) func()

func SetNow

func SetNow(f func() time.Time) func()

func Unix

func Unix(sec int64, nsec int64) time.Time

func Until

func Until(t time.Time) time.Duration

Types

type Duration

type Duration = time.Duration

type Time

type Time = time.Time

Jump to

Keyboard shortcuts

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