MCPcopy Index your code
hub / github.com/FloatTech/ZeroBot-Plugin / GetTimerInfo

Method GetTimerInfo

plugin/manager/timer/parse.go:17–22  ·  view source on GitHub ↗

GetTimerInfo 获得标准化定时字符串

()

Source from the content-addressed store, hash-verified

15
16// GetTimerInfo 获得标准化定时字符串
17func (t *Timer) GetTimerInfo() string {
18 if t.Cron != "" {
19 return fmt.Sprintf("[%d]%s", t.GrpID, t.Cron)
20 }
21 return fmt.Sprintf("[%d]%d月%d日%d周%d:%d", t.GrpID, t.Month(), t.Day(), t.Week(), t.Hour(), t.Minute())
22}
23
24// GetTimerID 获得标准化 ID
25func (t *Timer) GetTimerID() uint32 {

Callers 2

GetTimerIDMethod · 0.95
ListTimersMethod · 0.80

Calls 5

MonthMethod · 0.95
DayMethod · 0.95
WeekMethod · 0.95
HourMethod · 0.95
MinuteMethod · 0.95

Tested by

no test coverage detected