time

package
v1.4.11 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBJLocation

func GetBJLocation() *time.Location

GetBJLocation 东八区.

func GetLocationByName

func GetLocationByName(name string) (*time.Location, error)

GetLocationByName 根据名字获取时区.

func GetUTCLocation

func GetUTCLocation() *time.Location

GetUTCLocation 获取UTC时区.

func McTimestamp

func McTimestamp() int64

McTimestamp 时间戳, 单位为: mc.

func MsTimestamp

func MsTimestamp() int64

MsTimestamp 时间戳, 单位为: ms.

func NaTimestamp

func NaTimestamp() int64

NaTimestamp 时间戳, 单位为: na.

func Now

func Now() time.Time

func Timestamp

func Timestamp() int64

Timestamp 时间戳, 单位为: s.

Types

This section is empty.

Jump to

Keyboard shortcuts

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