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