rocron

package
v1.0.216 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 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

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

GetDayExplain 天

func GetDaySpec

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

GetDaySpec 天

func GetHourExplain

func GetHourExplain(hours, minutes, seconds int) string

GetHourExplain 每隔小时

func GetHourSpec

func GetHourSpec(hours, minutes, seconds int) string

GetHourSpec 每隔小时

func GetMinuteExplain

func GetMinuteExplain(minutes, seconds int) string

GetMinuteExplain 每隔分钟

func GetMinuteSpec

func GetMinuteSpec(minutes, seconds int) string

GetMinuteSpec 每隔分钟

func GetSecondExplain

func GetSecondExplain(seconds int) string

GetSecondExplain 每隔秒

func GetSecondSpec

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