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

Function formatWeeklyIntervalCron

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

Source from the content-addressed store, hash-verified

328}
329
330func formatWeeklyIntervalCron(interval int) string {
331 if interval == 1 {
332 return "0 0 * * 0"
333 }
334 return fmt.Sprintf("0 0 */%d * *", interval*7)
335}
336
337func formatMonthlyIntervalCron(interval int) string {
338 if interval == 1 {

Callers 1

formatShortDurationCronFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected