From 77e7d468838fb405a387cd9200b74cc970ca02b1 Mon Sep 17 00:00:00 2001 From: kercylan98 Date: Mon, 26 Jun 2023 20:07:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=85=A8=E5=B1=80=E5=81=8F=E7=A7=BB=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/offset/time.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/offset/time.go b/utils/offset/time.go index 9fed9e2..17d383b 100644 --- a/utils/offset/time.go +++ b/utils/offset/time.go @@ -38,6 +38,11 @@ func SetGlobal(offset time.Duration) { global.SetOffset(offset) } +// GetGlobal 获取全局偏移时间 +func GetGlobal() *Time { + return global +} + // Now 获取当前时间偏移后的时间 func Now() time.Time { return global.Now()