mtime

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentMilliUnix

func CurrentMilliUnix() int64

获取当前的时间 - 毫秒级时间戳

func CurrentNanoUnix

func CurrentNanoUnix() int64

获取当前的时间 - 纳秒级时间戳

func CurrentUnix

func CurrentUnix() int64

获取当前的时间 - Unix时间戳

func Date

func Date(format string, nowTime time.Time) string

当前时间转换成字符串

func DateParse

func DateParse(dateString, format string) (time.Time, error)

Parse Date use PHP time format.

func DateToUnix

func DateToUnix(dateString, format string) int64

func FromUnixTime

func FromUnixTime(ti int64, format string) string

unix时间戳 转换字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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