新增时间偏移

This commit is contained in:
boyce
2025-10-09 17:22:09 +08:00
parent 419e7ee0c4
commit f22ee230e4

View File

@@ -108,4 +108,7 @@ func Now() time.Time{
return time.Now().Add(timeOffset) return time.Now().Add(timeOffset)
} }
// SetTimeOffset 设置时间偏移量
func SetTimeOffset(offset time.Duration) {
timeOffset = offset
}