time2

package
v0.0.0-...-742e869 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// ISO8601 ISO8601
	ISO8601 = "2006-01-02T15:04:05-0700"
)

Variables

This section is empty.

Functions

func ISO8601ToUnix

func ISO8601ToUnix(ts string) (int64, error)

ISO8601ToUnix ISO8601 to unix

func Now

func Now() string

Now 获取当前时间

func NowUnix

func NowUnix() int64

NowUnix 获取当前时间戳

func NowUnixMill

func NowUnixMill() int64

NowUnixMill 获取当前时间戳(毫秒)

func UnixToISO8601

func UnixToISO8601(ts int64) string

UnixToISO8601 unix to ISO8601

Types

This section is empty.

Jump to

Keyboard shortcuts

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