cronutil

package
v2.8.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCronExpression

func ParseCronExpression(cronExpr string) (cron.Schedule, error)

simple wrapper around robfig/cron ParseStandard(standardSpec string) (Schedule, error) supports the following cron syntax enhancements @never: returns year 9999 timepoint, a 4-digit year far enough in the future to act as never

Types

type Year9999

type Year9999 struct{}

empty struct for implementing cron.Schedule interface

func (Year9999) Next

func (Year9999) Next(_ time.Time) time.Time

implements Schedule.Next(time.Time) time.Time returns timepoint for year 9999

Jump to

Keyboard shortcuts

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