Documentation ¶
Index ¶
- func FuncCost(start time.Time, printer Printer)
- func GetDayOffset(tm time.Time, ago int64, format ...string) string
- func GetDaysDiff(date1 time.Time, date2 time.Time) int
- func GetMonthByInt(weekDay string) int32
- func GetThisMonthFirstZeros() int64
- func GetWeekByIntDay(weekDay string) int32
- func RandStringBytesMask(n int) string
- func RunPeriod(interval time.Duration, handler func(), closeCh ...chan struct{})
- func StringToTime(t string, format ...string) time.Time
- func StringToUnix(t string, format ...string) int64
- func TimeToString(t time.Time, format ...string) string
- func TimeToUnix(t time.Time) int64
- func UnixToString(tm int64, format ...string) string
- func UnixToTime(tm int64) time.Time
- type EUnit
- type Printer
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDayOffset ¶
GetDayOffset 获取n天前或者后的时间
Types ¶
Click to show internal directories.
Click to hide internal directories.