Documentation
¶
Overview ¶
Package gxtime encapsulates some golang.time functions
Package gxtime encapsulates some golang.time functions ¶
Package gxtime encapsulates some golang.time functions ref: https://github.com/AlexStocks/go-practice/blob/master/time/siddontang_time_wheel.go
Index ¶
- func Future(sec int, f func())
- func Time2Unix(t time.Time) int64
- func TimeMicrosecondDuration(m int) time.Duration
- func TimeMillisecondDuration(m int) time.Duration
- func TimeNanosecondDuration(n int) time.Duration
- func TimeSecondDuration(sec int) time.Duration
- func Unix2Time(unix int64) time.Time
- func UnixString2Time(unix string) time.Time
- func YMD(year int, month int, day int, hour int, minute int, sec int) int
- func YMDPrint(sec int, nsec int) string
- func YMDUTC(year int, month int, day int, hour int, minute int, sec int) int
- type CountWatch
- type Wheel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TimeMicrosecondDuration ¶
func TimeMillisecondDuration ¶
func TimeNanosecondDuration ¶
func TimeSecondDuration ¶
func UnixString2Time ¶
Types ¶
type CountWatch ¶
type CountWatch struct {
// contains filtered or unexported fields
}
func (*CountWatch) Count ¶
func (w *CountWatch) Count() int64
func (*CountWatch) Reset ¶
func (w *CountWatch) Reset()
func (*CountWatch) Start ¶
func (w *CountWatch) Start()
Click to show internal directories.
Click to hide internal directories.