mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-10 11:16:13 +08:00
14 lines
229 B
Go
14 lines
229 B
Go
|
|
package util
|
||
|
|
|
||
|
|
import (
|
||
|
|
"time"
|
||
|
|
)
|
||
|
|
|
||
|
|
func GetNextDayTsNano(curTs int64) int64 {
|
||
|
|
curTime := time.Unix(0, curTs)
|
||
|
|
nextDay := curTime.AddDate(0, 0, 1).Truncate(24 * time.Hour)
|
||
|
|
nextDayNano := nextDay.UnixNano()
|
||
|
|
|
||
|
|
return nextDayNano
|
||
|
|
}
|