mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-19 06:30:05 +08:00
20 lines
366 B
Go
20 lines
366 B
Go
package libcore
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
var outdated string
|
|
|
|
func GetBuildTime() int64 {
|
|
buildDate := "20230327"
|
|
buildTime, _ := time.Parse("20060102", buildDate)
|
|
return buildTime.Unix()
|
|
}
|
|
|
|
func GetExpireTime() int64 {
|
|
buildTime := time.Unix(GetBuildTime(), 0)
|
|
expireTime := buildTime.AddDate(0, 6, 0) // current force update: 6 months
|
|
return expireTime.Unix()
|
|
}
|