Documentation ¶
Overview ¶
Package timestamp 本地时间戳相关功能
Index ¶
- Constants
- func CurrentDateZero(t time.Time) time.Time
- func Now() int64
- func Since(t time.Time) int64
- func SinceZero(milliseconds int64) int64
- func SinceZeroHour(t time.Time) int64
- func Time(milliseconds int64) time.Time
- func TimeToTimestamp(t time.Time) int64
- func Today() int64
- func TodayZero() time.Time
- func ZeroHour(milliseconds int64) int64
- type Timestamp
Constants ¶
View Source
const ( SecondsPerMinute = 60 SecondsPerHour = 60 * SecondsPerMinute SecondsPerDay = 24 * SecondsPerHour MillisecondsPerSecond = 1000 MillisecondsPerMinute = SecondsPerMinute * MillisecondsPerSecond MillisecondsPerHour = SecondsPerHour * MillisecondsPerSecond MillisecondsPerDay = SecondsPerDay * MillisecondsPerSecond )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.