Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Milliseconds ¶ added in v0.9.10
type Milliseconds int64
Milliseconds 以毫秒为单位表示时间长度
func NewMilliseconds ¶ added in v0.9.10
func NewMilliseconds(d time.Duration) Milliseconds
NewMilliseconds 把 Duration 转换为 Milliseconds
func (Milliseconds) Duration ¶ added in v0.9.10
func (value Milliseconds) Duration() time.Duration
Duration 转换为 Duration 形式
type Seconds ¶ added in v0.9.10
type Seconds int64
Seconds 以秒为单位表示时间长度
func NewSeconds ¶ added in v0.9.10
NewSeconds 把 Duration 转换为 Seconds
type Time ¶
type Time int64
Time 用 int64 表示一个 unix 时间戳,单位是毫秒,基于 UTC_1970-01-01_00:00:00
Click to show internal directories.
Click to hide internal directories.