mirror of
https://github.com/usual2970/certimate.git
synced 2025-08-14 13:21:45 +00:00
Enhance the message notification feature
This commit is contained in:
@@ -13,3 +13,10 @@ func BeijingTimeStr() string {
|
||||
// 格式化为字符串
|
||||
return now.Format("2006-01-02 15:04:05")
|
||||
}
|
||||
|
||||
func GetTimeAfter(d time.Duration) string {
|
||||
|
||||
t := time.Now().UTC()
|
||||
|
||||
return t.Add(d).Format("2006-01-02 15:04:05")
|
||||
}
|
||||
|
Reference in New Issue
Block a user