(interval int)
| 335 | } |
| 336 | |
| 337 | func formatMonthlyIntervalCron(interval int) string { |
| 338 | if interval == 1 { |
| 339 | return "0 0 1 * *" |
| 340 | } |
| 341 | return fmt.Sprintf("0 0 1 */%d *", interval) |
| 342 | } |
| 343 | |
| 344 | func (p *ScheduleParser) parseDailyBase(hasWeekdaysSuffix bool) (string, error) { |
| 345 | if len(p.tokens) == 1 || (len(p.tokens) == 3 && hasWeekdaysSuffix) { |
no outgoing calls
no test coverage detected