time

package
v0.0.0-...-120cf50 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const FmtTimeStr string = "2006-01-02 15:04:05"

Variables

This section is empty.

Functions

func DurToMs

func DurToMs(dur time.Duration) int64

time dur转毫秒

func StampToTime

func StampToTime(TimeStamp string) time.Time

string(时间戳) 转 time

func StrToCstTime

func StrToCstTime(timeStr string) time.Time

将string转为time (cst时间)

func TimeToStamp

func TimeToStamp(t time.Time) string

time转string (时间戳)

func TimeToStdStr

func TimeToStdStr(t time.Time) string

time转string(标准格式)

func UnixMs

func UnixMs(t time.Time) int64

获得unix毫秒数

Types

This section is empty.

Jump to

Keyboard shortcuts

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