From cfc1f8fbe4a148504a714b9d5908719e372ee038 Mon Sep 17 00:00:00 2001 From: kingeasternsun Date: Fri, 17 Sep 2021 09:27:31 +0800 Subject: [PATCH] use english doc --- os/gcron/gcron_schedule.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/os/gcron/gcron_schedule.go b/os/gcron/gcron_schedule.go index b1c749d33..40de1953b 100644 --- a/os/gcron/gcron_schedule.go +++ b/os/gcron/gcron_schedule.go @@ -7,13 +7,14 @@ package gcron import ( + "strconv" + "strings" + "time" + "github.com/gogf/gf/errors/gcode" "github.com/gogf/gf/errors/gerror" "github.com/gogf/gf/os/gtime" "github.com/gogf/gf/text/gregex" - "strconv" - "strings" - "time" ) // cronSchedule is the schedule for cron job. @@ -265,7 +266,7 @@ func (s *cronSchedule) meet(t time.Time) bool { } } -// 参考 robfig/cron的方法计算 github.com/robfi/cron/v3@v3.0.0/spec.go +// inspired by robfig/cron github.com/robfi/cron/v3@v3.0.0/spec.go // https://github.com/robfig/cron/blob/master/spec_test.go func (s *cronSchedule) Next(t time.Time) time.Time {