parserext

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package parserext provides optional cron parser extensions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuartzParser

func NewQuartzParser(loc *time.Location) cron.Parser

NewQuartzParser handles standard specs plus Quartz L, N#M, and NL tokens. Specs without Quartz-only tokens are forwarded to the standard parser.

Types

type QuartzSchedule

type QuartzSchedule struct {
	// contains filtered or unexported fields
}

QuartzSchedule supports the Quartz subset parsed by NewQuartzParser.

func (*QuartzSchedule) Location

func (s *QuartzSchedule) Location() *time.Location

Location returns the schedule's evaluation time zone.

func (*QuartzSchedule) Next

func (s *QuartzSchedule) Next(t time.Time) time.Time

func (*QuartzSchedule) Upcoming

func (s *QuartzSchedule) Upcoming(from time.Time) iter.Seq[time.Time]

Jump to

Keyboard shortcuts

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