date

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeFormat = "2006-01-02 15:04:05"
	DateFormat = "2006-01-02"
)

Variables

This section is empty.

Functions

func GetDateStr

func GetDateStr() string

GetDateStr return current date string,eg: 2019-12-30

func GetDateTime added in v0.8.0

func GetDateTime(day string) time.Time

GetDateTime

func GetLocalTimeZone added in v0.8.0

func GetLocalTimeZone() *time.Location

GetLocalTimeZone

func GetMicroTimeStampStr

func GetMicroTimeStampStr() string

GetMicroTimeStampStr return micro timestamp string

func GetTime

func GetTime() time.Time

GetTime return current local time

func GetTimeStamp

func GetTimeStamp() int64

GetTimeStamp return current timestamp

func GetTimeStr

func GetTimeStr() string

GetTimeStr return current time string,eg:2019-12-30 22:00:00

Types

This section is empty.

Jump to

Keyboard shortcuts

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