time

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MicrosecondsStr

func MicrosecondsStr(elapsed time.Duration) string

MicrosecondsStr 将 time.Duration 类型(nano seconds 为单位)输出为小数点后 3 位的 ms (microsecond 毫秒,千分之一秒)

func StringTimeAddDay

func StringTimeAddDay(timeStr string, days int) (string, error)

StringTimeAddDay 时间加n天

func TimeNowInTimezone

func TimeNowInTimezone() time.Time

TimeNowInTimezone 获取当前时间,支持时区

Types

This section is empty.

Jump to

Keyboard shortcuts

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