From 9d57144934a3570a843f2ca0b597e93ffdf65296 Mon Sep 17 00:00:00 2001 From: eson <474420502@qq.com> Date: Wed, 2 Jan 2019 03:03:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=94=E5=9B=9E=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=9B=B4=E5=AE=A2=E8=A7=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crontab.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crontab.go b/crontab.go index ba78c05..9694a90 100644 --- a/crontab.go +++ b/crontab.go @@ -304,7 +304,7 @@ func (cron *Crontab) intervalCalculateNextTime(now time.Time) { } - fmt.Println(time.Now(), cron.uid.String(), "success:", cron.trueCount, " wait:", isecond) + fmt.Println(time.Now().Format("01-02 15:04:05"), cron.uid.String(), "success:", cron.trueCount, " wait:", isecond) } else { @@ -322,7 +322,7 @@ func (cron *Crontab) intervalCalculateNextTime(now time.Time) { } } - fmt.Println(time.Now(), cron.uid.String(), "fail:", cron.failCount, " wait:", isecond) + fmt.Println(time.Now().Format("01-02 15:04:05"), cron.uid.String(), "fail:", cron.failCount, " wait:", isecond) } iv.Count--