clock

package
v0.0.0-...-e69eef7 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 1 Imported by: 30

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