GetTimerInfo 获得标准化定时字符串
()
| 15 | |
| 16 | // GetTimerInfo 获得标准化定时字符串 |
| 17 | func (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 |
| 25 | func (t *Timer) GetTimerID() uint32 { |
no test coverage detected