Documentation ¶
Overview ¶
Package time 时间相关工具.
包括 计时器 ClockStart, ClockCount, ClockStop. Natural、NaturalNano 自然语言时间间隔显示.
Index ¶
- Variables
- func ClockCount(clock int64) time.Duration
- func ClockStart() int64
- func ClockStop(clock int64) time.Duration
- func Debounced(fun func(), interval time.Duration) func()
- func Natural(d time.Duration) string
- func NaturalNano(dur time.Duration) string
- func Parse(str string) (time.Time, error)
- func ParseNumber[T constraints.Integer | constraints.Float](num T) time.Time
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrParseError = errors.New("parse error")
Functions ¶
func ParseNumber ¶
func ParseNumber[T constraints.Integer | constraints.Float](num T) time.Time
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.