Documentation
¶
Index ¶
- Constants
- func ChinaTimezone() *time.Location
- func Cycle(what func(), delay time.Duration, stop chan struct{})
- func DynamicCycle(what func(), delayAddr *time.Duration, stop chan struct{})
- func DynamicSchedule(what func(), delayAddr *time.Duration, stop chan struct{})
- func GetLocalStr(base time.Time) string
- func GetNowTs() int64
- func GetNowTsMs() int64
- func GetTodayStr() string
- func IsSameDay(l time.Time, r time.Time) bool
- func LocalNow() time.Time
- func Schedule(what func(), delay time.Duration, stop chan struct{})
- func UTCToLocal(base time.Time) time.Time
Constants ¶
View Source
const ( FullFormat = "2006-01-02 15:04:05" //最常用的格式 DayFormat = "2006-01-02" )
Variables ¶
This section is empty.
Functions ¶
func ChinaTimezone ¶
func DynamicCycle ¶
循环,动态间隔时间,会立刻执行一次
func DynamicSchedule ¶
动态频率,不会立刻执行
func GetLocalStr ¶
GetLocalStr change utc time to local date str
func GetNowTsMs ¶
func GetNowTsMs() int64
func GetTodayStr ¶
func GetTodayStr() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.