A little more updating.

This commit is contained in:
Matt Burchett
2018-11-15 05:34:24 +00:00
parent bc9461359f
commit 145fe10513
11 changed files with 170 additions and 57 deletions

View File

@@ -2,6 +2,7 @@ package util
import "time"
// SubtractedEpoch will take the current time in epoch and subtract (days) worth of seconds from the current epoch time.
func SubtractedEpoch(days int) int64 {
now := time.Now()
unix := now.Unix()