mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
添加时间偏移接口
This commit is contained in:
@@ -112,3 +112,8 @@ func Now() time.Time {
|
||||
func SetTimeOffset(offset time.Duration) {
|
||||
timeOffset = offset
|
||||
}
|
||||
|
||||
// AddTimeOffset 添加时间偏移量
|
||||
func AddTimeOffset(addOffset time.Duration) {
|
||||
timeOffset += addOffset
|
||||
}
|
||||
Reference in New Issue
Block a user