Documentation
¶
Index ¶
- Constants
- func MonthRange(timeStamp int64) (int64, int64)
- func MonthRangeWthiLocation(timeStamp int64, loc *time.Location) (int64, int64)
- func Now() time.Duration
- func ShanghaiZeroTime(d time.Time) time.Time
- func Since(d time.Duration) time.Duration
- func ToTime(d time.Duration) time.Time
- func UTCZeroTime(d time.Time) time.Time
- func ZeroTime(d time.Time) time.Time
- func ZeroTimeWithLocation(d time.Time, loc *time.Location) time.Time
- type FakeTicker
- type Ticker
- type Time
Constants ¶
View Source
const ( TimeLayout = "2006-01-02 15:04:05" DateLayout = "2006-01-02" )
Variables ¶
This section is empty.
Functions ¶
func MonthRange ¶
@desc 返回一个月的开始时间和结束时间 @auth liuguoqiang 2020-04-27 @param @return
func MonthRangeWthiLocation ¶ added in v1.1.10
Types ¶
type FakeTicker ¶
func NewFakeTicker ¶
func NewFakeTicker() FakeTicker
type Ticker ¶
func NewRealTicker ¶
Click to show internal directories.
Click to hide internal directories.