timeT

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcTime

func CalcTime(startTi, endTi time.Time) int

计算时间差

func FormatTime

func FormatTime(ti time.Time, format ...string) string

时间转字符串

func GetNowTime added in v0.0.5

func GetNowTime(format ...string) string

获取当前时间

func GetTimestampByTime

func GetTimestampByTime(ti time.Time) int

获取时间戳

func SinceTime added in v0.0.5

func SinceTime(endTi time.Time, isSecond bool) float64

计算时间差

func StrToTime

func StrToTime(ti string, format ...string) time.Time

字符串转时间

Types

This section is empty.

Jump to

Keyboard shortcuts

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