(hasWeekdaysSuffix bool)
| 401 | } |
| 402 | |
| 403 | func (p *ScheduleParser) parseDailyAround(hasWeekdaysSuffix bool) (string, error) { |
| 404 | timeStr, err := p.extractTimeWithWeekdays(2, hasWeekdaysSuffix) |
| 405 | if err != nil { |
| 406 | return "", err |
| 407 | } |
| 408 | |
| 409 | minute, hour := parseTime(timeStr) |
| 410 | if hasWeekdaysSuffix { |
| 411 | return fmt.Sprintf("FUZZY:DAILY_AROUND_WEEKDAYS:%s:%s * * *", hour, minute), nil |
| 412 | } |
| 413 | return fmt.Sprintf("FUZZY:DAILY_AROUND:%s:%s * * *", hour, minute), nil |
| 414 | } |
| 415 | |
| 416 | func (p *ScheduleParser) parseHourlyBase(hasWeekdaysSuffix bool) (string, error) { |
| 417 | scheduleLog.Printf("Parsing hourly schedule: weekdays=%v", hasWeekdaysSuffix) |
no test coverage detected