Documentation ¶
Index ¶
- Variables
- func GetDayExplain(days, hours, minutes, seconds int) string
- func GetDaySpec(day, hours, minutes, seconds int) string
- func GetHourExplain(hours, minutes, seconds int) string
- func GetHourSpec(hours, minutes, seconds int) string
- func GetMinuteExplain(minutes, seconds int) string
- func GetMinuteSpec(minutes, seconds int) string
- func GetSecondExplain(seconds int) string
- func GetSecondSpec(seconds int) string
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 = "每小时运行,每小时开始执行一次" )
View Source
var (
Cron *cron.Cron
)
Functions ¶
func GetDayExplain ¶ added in v1.0.108
GetDayExplain 天
func GetDaySpec ¶ added in v1.0.108
GetDaySpec 天
func GetHourExplain ¶ added in v1.0.108
GetHourExplain 每隔小时
func GetHourSpec ¶ added in v1.0.108
GetHourSpec 每隔小时
func GetMinuteExplain ¶ added in v1.0.108
GetMinuteExplain 每隔分钟
func GetMinuteSpec ¶ added in v1.0.108
GetMinuteSpec 每隔分钟
func GetSecondExplain ¶ added in v1.0.108
GetSecondExplain 每隔秒
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.