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

Function formatDailyIntervalCron

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

Source from the content-addressed store, hash-verified

321}
322
323func formatDailyIntervalCron(interval int) string {
324 if interval == 1 {
325 return "0 0 * * *"
326 }
327 return fmt.Sprintf("0 0 */%d * *", interval)
328}
329
330func formatWeeklyIntervalCron(interval int) string {
331 if interval == 1 {

Callers 2

formatShortDurationCronFunction · 0.85
formatLongIntervalCronFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected