From 0740ff7ca0360fb8e1a4f5d8c1265d48eecaaa51 Mon Sep 17 00:00:00 2001 From: injoyai <1113655791@qq.com> Date: Fri, 28 Feb 2025 10:38:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96RangeDesc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- workday.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workday.go b/workday.go index 8cda837..d90f90b 100644 --- a/workday.go +++ b/workday.go @@ -113,7 +113,7 @@ func (this *Workday) TodayIs() bool { // RangeDesc 倒序遍历工作日,从今天-1990年12月19日(上海交易所成立时间) func (this *Workday) RangeDesc(f func(t time.Time) bool) { t := IntegerDay(time.Now()) - for ; t.Before(time.Date(1990, 12, 1, 0, 0, 0, 0, time.Local)); t = t.Add(-time.Hour * 24) { + for ; t.After(time.Date(1990, 12, 18, 0, 0, 0, 0, time.Local)); t = t.Add(-time.Hour * 24) { if this.Is(t) { if !f(t) { return