recurrence

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NextOccurrence

func NextOccurrence(r Rule, base, after time.Time, loc *time.Location) time.Time

func Occurrences

func Occurrences(r Rule, base, from, to time.Time, loc *time.Location) []time.Time

Types

type Rule

type Rule struct {
	Freq       models.RecurrenceFreq
	Interval   int
	ByDay      []time.Weekday
	ByMonthDay int
	EndAt      time.Time
}

Jump to

Keyboard shortcuts

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