xtime

package
v0.0.0-...-8845ca5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: AGPL-3.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

View Source
const (
	Nanosecond  = time.Nanosecond
	Microsecond = time.Microsecond
	Millisecond = time.Millisecond
	Second      = time.Second
	Minute      = time.Minute
	HalfHour    = time.Minute * 30
	Hour        = time.Hour
	HalfDay     = time.Hour * 12
	Day         = time.Hour * 24
	Week        = Day * 7
	Month       = Day * 30
	Quarter     = Day * 91
	Year        = Day * 365
)

Variables

This section is empty.

Functions

func Now

func Now() time.Time

func NowUnix

func NowUnix() int64

func NowUnixMilli

func NowUnixMilli() int64

func RandSleep

func RandSleep(s ...time.Duration)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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