aboutsummaryrefslogtreecommitdiff
path: root/weed/util/time.go
blob: 8e237b72dd13c16f6173a7546fc0e21043ebb5d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
}