rocron

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 1 Imported by: 0

README

Golang rocron

📦 Golang rocron

godoc goproxy.cn goreportcard.com deps.dev

安装

go get -v -u go.dtapp.net/rocron@v1.0.0

Documentation

Index

Constants

View Source
const (
	Version = "1.0.0"
)

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