cron

package
v0.139.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Schedule

type Schedule struct {
	Minute     []int
	Hour       []int
	DayOfMonth []int
	Month      []int
	DayOfWeek  []int
}

Schedule represents a parsed cron expression.

func Parse

func Parse(expr string) (*Schedule, error)

Parse validates and parses a standard 5-field cron expression: minute hour day-of-month month day-of-week

func (*Schedule) Next

func (s *Schedule) Next(from time.Time) time.Time

Next returns the next fire time strictly after from.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL