time

package
v1.13.6 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RFC3339 is useful for formatting time.
	RFC3339 = "2006-01-02T15:04:05Z07:00"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Duration

type Duration = time.Duration

A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.

type Time

type Time = time.Time

Time is a copy of time from golang std lib to avoid import it from other packages.

func NowTime

func NowTime() Time

NowTime returns the current local time.

type Timestamp

type Timestamp int64

Timestamp represents a wrapper to control the json encoding.

func Now

func Now() Timestamp

Now returns current Unix time.

Jump to

Keyboard shortcuts

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