rocron

package
v1.0.186 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	YearlySpec      = "0 0 0 1 1 *"
	YearlyExplain   = "每年一次,1 月 1 日午夜执行一次"
	AnnuallySpec    = "0 0 0 1 1 *"
	AnnuallyExplain = "每年一次,1 月 1 日午夜执行一次"
	MonthlySpec     = "0 0 0 1 * *"
	MonthlyExplain  = "每月执行,午夜,月初执行一次"
	WeeklySpec      = "0 0 0 * * 0"
	WeeklyExplain   = "每周执行,周六和周日之间的午夜执行一次"
	DailySpec       = "0 0 0 * * *"
	DailyExplain    = "每天午夜执行一次"
	MidnightSpec    = "0 0 0 * * *"
	MidnightExplain = "每天午夜执行一次"
	HourlySpec      = "0 0 * * * *"
	HourlyExplain   = "每小时运行,每小时开始执行一次"
)

Functions

func GetDayExplain added in v1.0.108

func GetDayExplain(days, hours, minutes, seconds int) string

GetDayExplain 天

func GetDaySpec added in v1.0.108

func GetDaySpec(day, hours, minutes, seconds int) string

GetDaySpec 天

func GetHourExplain added in v1.0.108

func GetHourExplain(hours, minutes, seconds int) string

GetHourExplain 每隔小时

func GetHourSpec added in v1.0.108

func GetHourSpec(hours, minutes, seconds int) string

GetHourSpec 每隔小时

func GetMinuteExplain added in v1.0.108

func GetMinuteExplain(minutes, seconds int) string

GetMinuteExplain 每隔分钟

func GetMinuteSpec added in v1.0.108

func GetMinuteSpec(minutes, seconds int) string

GetMinuteSpec 每隔分钟

func GetSecondExplain added in v1.0.108

func GetSecondExplain(seconds int) string

GetSecondExplain 每隔秒

func GetSecondSpec added in v1.0.108

func GetSecondSpec(seconds int) string

GetSecondSpec 每隔秒

Types

This section is empty.

Jump to

Keyboard shortcuts

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