timeTool

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentDate

func GetCurrentDate() string

获取当前的时间 - 字符串

func GetCurrentMilliUnix

func GetCurrentMilliUnix() int64

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

func GetCurrentNanoUnix

func GetCurrentNanoUnix() int64

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

func GetCurrentUnix

func GetCurrentUnix() int64

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

func TimeStampToDuration added in v1.0.4

func TimeStampToDuration(inTime int64) string

将时间转换为X秒, X分钟前, 这种形式

func TimeToDuration added in v1.0.4

func TimeToDuration(inTime time.Time) string

将时间转换为X秒, X分钟前, 这种形式

Types

This section is empty.

Jump to

Keyboard shortcuts

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