util

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger *zap.Logger
)

Functions

func Format

func Format(date time.Time) string

func GetNowTime

func GetNowTime() int64

GetNowTime 获取当前时间戳

func GetNowTimeSecond

func GetNowTimeSecond() int64

GetNowTimeSecond 获取当前时间戳 秒

func GetTimeSecond

func GetTimeSecond(time time.Time) int64

GetTimeSecond 获取当前时间秒

func GetTimeTime

func GetTimeTime(time time.Time) int64

GetTimeTime 获取当前时间戳

func Now

func Now() time.Time

Now 获取当前时间

func NowStr

func NowStr() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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