package libcore

import (
	"strconv"
	"time"
)

var outdated string

func GetBuildTime() int64 {
	buildDate := 20230330
	buildTime, _ := time.Parse("20060102", strconv.Itoa(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()
}
