MCPcopy Create free account
hub / github.com/github/gh-aw / formatMonthlyIntervalCron

Function formatMonthlyIntervalCron

pkg/parser/schedule_parser.go:337–342  ·  view source on GitHub ↗
(interval int)

Source from the content-addressed store, hash-verified

335}
336
337func 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
344func (p *ScheduleParser) parseDailyBase(hasWeekdaysSuffix bool) (string, error) {
345 if len(p.tokens) == 1 || (len(p.tokens) == 3 && hasWeekdaysSuffix) {

Callers 1

formatShortDurationCronFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected