Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
aa4b88d7
Commit
aa4b88d7
authored
Apr 27, 2022
by
Yazawazi
Browse files
cron expression comments
parent
e8b34b61
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/task/Task.java
View file @
aa4b88d7
...
@@ -6,8 +6,22 @@ import java.lang.annotation.RetentionPolicy;
...
@@ -6,8 +6,22 @@ import java.lang.annotation.RetentionPolicy;
/*
/*
* So what is cron expression?
* So what is cron expression?
* second minute hour day month week year
The format of a Cron expression is as follows.
Second Minute Hour Day Month Week Year
Seconds: 0-59
Minute: 0-59
hour: 0-23
Day: 1-31
Month: 1-12
Week: 1-7 (0-6 sometimes)
Year: Specify your own
If you want to express every second or every minute or something like that, use the * symbol in that position;
if you want to express more than one such as every 15 minutes and every 30 minutes, you can write:`15, 30`.
For the rest of the wildcard characters, please Google them yourself
*/
*/
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
Task
{
public
@interface
Task
{
String
taskName
()
default
"NO_NAME"
;
String
taskName
()
default
"NO_NAME"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment