Documentation ¶
Index ¶
- func ClockInit()
- func DefaultTimezoneOffset() int
- func MillisToDefaultTzTime(millis int64) time.Time
- func MillisToTzTime(millis int64, tzOffset TimeZoneOffset) time.Time
- func MonotonicElapsed() time.Duration
- func NowIn(offset TimeZoneOffset) time.Time
- func NowInDefaultTZ() time.Time
- func NowInUTC() time.Time
- func SetDefaultTimezoneOffset(tz TimeZoneOffset)
- func Since(beginTime time.Time) time.Duration
- type Clock
- type TimeZoneOffset
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultTimezoneOffset ¶
func DefaultTimezoneOffset() int
func MillisToDefaultTzTime ¶
func MillisToTzTime ¶
func MillisToTzTime(millis int64, tzOffset TimeZoneOffset) time.Time
func MonotonicElapsed ¶
func NowIn ¶
func NowIn(offset TimeZoneOffset) time.Time
func NowInDefaultTZ ¶
func SetDefaultTimezoneOffset ¶
func SetDefaultTimezoneOffset(tz TimeZoneOffset)
Types ¶
type Clock ¶
type TimeZoneOffset ¶
type TimeZoneOffset int32
const ( TzUtc0Offset TimeZoneOffset = 0 TzUtc8Offset TimeZoneOffset = 8 * hourInMinutes TzAsiaShanghaiOffset TimeZoneOffset = TzUtc8Offset )
Click to show internal directories.
Click to hide internal directories.