cron

package
v0.0.0-...-72ae066 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expand

func Expand(c Cron) map[string]interface{}

Types

type Cron

type Cron struct {
	Minute   string
	Hour     string
	Dom      string
	Month    string
	Dow      string
	Complete map[string]interface{}
}

func Now

func Now() Cron

func Parse

func Parse(s string) (Cron, error)

func Time

func Time(t time.Time) Cron

func (Cron) Map

func (c Cron) Map() map[string]string

func (Cron) Next

func (c Cron) Next(time2 time.Time) time.Time

func (Cron) Steps

func (c Cron) Steps(start, end time.Time) int

func (Cron) String

func (c Cron) String() string

Jump to

Keyboard shortcuts

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