timex

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DateTimeLayout = "2006-01-02 15:04:05" // time.DateTime
	DateLayout     = "2006-01-02"          // time.DateOnly
	TimeLayout     = "15:04:05"            // time.TimeOnly
)

Variables

This section is empty.

Functions

func Current

func Current() string

func CurrentDate

func CurrentDate() string

func CurrentMicros

func CurrentMicros() int64

CurrentMicros returns the current microseconds.

func CurrentMillis

func CurrentMillis() int64

CurrentMillis returns the current milliseconds.

func CurrentTime

func CurrentTime() string

func CurrentUnix

func CurrentUnix() int64

func DateString

func DateString(t time.Time) string

func DateTimeString

func DateTimeString(t time.Time) string

func StrParseToTime

func StrParseToTime(t string, location ...time.Location) (time.Time, error)

StrParseToTime return time of string

func TimeString

func TimeString(t time.Time) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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