timeUtils

package
v0.0.0-...-efd9455 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeFormat   = "2006-01-02 15:04:05"
	TimeMSFormat = "2006-01-02 15:04:05.000"
	DateFormat   = "2006-01-02"
	TimeTZFormat = `2006-01-02T15:04:05Z`
)

Variables

This section is empty.

Functions

func GetCurrentTimestampByMill

func GetCurrentTimestampByMill() int64

Get the current timestamp by Mill

func Now

func Now() time.Time

func NowStrDatetime

func NowStrDatetime() string

func ParseTime

func ParseTime(str string) time.Time

func StrDate

func StrDate(t time.Time) string

func StrDatetime

func StrDatetime(t time.Time) string

func StrDatetimeMs

func StrDatetimeMs(t time.Time) string

func Unix2Time

func Unix2Time(unix int64) 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