time

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RealTime

type RealTime struct{}

RealTime is a concrete implementation of Time interface.

func (*RealTime) Now

func (rt *RealTime) Now() time.Time

Now returns a timestamp of the current datetime in UTC.

type Time

type Time interface {
	Now() time.Time
}

Time represents time.

func New

func New() Time

New initializes and returns a new Time instance.

Jump to

Keyboard shortcuts

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