添加时间偏移接口

This commit is contained in:
boyce
2025-10-16 10:40:47 +08:00
parent be91bcd4b5
commit 08effd5bca

View File

@@ -112,3 +112,8 @@ func Now() time.Time {
func SetTimeOffset(offset time.Duration) {
timeOffset = offset
}
// AddTimeOffset 添加时间偏移量
func AddTimeOffset(addOffset time.Duration) {
timeOffset += addOffset
}