clock

package
v0.0.0-...-0da26dc Latest Latest
Warning

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

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

Documentation

Overview

Package clock provides convenient functionality to manage the time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock interface {
	// Now is the current time as seen by the clock, in UTC.
	Now() time.Time
}

Clock provides functionality to manage the time.

type RealTimeClock

type RealTimeClock struct{}

RealTimeClock is a real time Clock.

func (*RealTimeClock) Now

func (c *RealTimeClock) Now() time.Time

Now is the current time in UTC.

Jump to

Keyboard shortcuts

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