datetime

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNowMs

func GetNowMs() int64

GetNowMs 获取Unix时间戳,精确到毫秒

func GetNowNs

func GetNowNs() int64

GetNowNs 获取Unix时间戳,精确到纳秒

func GetNowSec

func GetNowSec() int64

GetNowSec 获取Unix时间戳,精确到秒

func GetNowUs

func GetNowUs() int64

GetNowUs 获取Unix时间戳,精确到微妙

Types

type Time

type Time struct {
}

func (Time) TimeStringToTime

func (t Time) TimeStringToTime(timeStr string) time.Time

TimeStringToTime 时间格式字符串转换

Jump to

Keyboard shortcuts

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