Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Grasscutter
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
ziqian zhang
Grasscutter
Commits
aa4b88d7
Commit
aa4b88d7
authored
3 years ago
by
Yazawazi
Browse files
Options
Downloads
Patches
Plain Diff
cron expression comments
parent
e8b34b61
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/emu/grasscutter/task/Task.java
+15
-1
15 additions, 1 deletion
src/main/java/emu/grasscutter/task/Task.java
with
15 additions
and
1 deletion
src/main/java/emu/grasscutter/task/Task.java
+
15
−
1
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"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment