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 Natural(d time.Duration) string
- func NaturalNano(dur time.Duration) string
- func Parse(str string) (date time.Time, err 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 ¶ added in v1.1.18
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.