now

package
v0.0.0-...-e613b9d Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Now returns a time.Time.
	Now func() time.Time = time.Now
)

Functions

func TimeFromTimestamp

func TimeFromTimestamp(v *timestamp.Timestamp) (time.Time, error)

TimeFromTimestamp returns a time.Time of the given timestamp.Timestamp.

func TimestampFromTime

func TimestampFromTime(v time.Time) *timestamp.Timestamp

TimestampFromTime returns a timestamp.Timestamp of the given time.Time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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