summary refs log tree commit diff stats
path: root/pkg/apod/rand.go
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-03-24 17:41:57 +0530
committerAndinus <andinus@nand.sh>2020-03-24 17:41:57 +0530
commit813b37d0cf7e6e371418feac56d40f48176105ba (patch)
tree2e4efd2224ff84700cbf354ea0ff75775d79a8a0 /pkg/apod/rand.go
parent532c060fd97c31c28f20f6f823472247edc0c30f (diff)
downloadcetus-813b37d0cf7e6e371418feac56d40f48176105ba.tar.gz
Reinitialize project and change module url
Diffstat (limited to 'pkg/apod/rand.go')
-rw-r--r--pkg/apod/rand.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/pkg/apod/rand.go b/pkg/apod/rand.go
deleted file mode 100644
index cf92784..0000000
--- a/pkg/apod/rand.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package apod
-
-import (
-	"math/rand"
-	"time"
-)
-
-// RandDate returns a random date between 1995-06-16 & today
-func RandDate() string {
-	var (
-		min   int64
-		max   int64
-		sec   int64
-		delta int64
-		date  string
-	)
-	min = time.Date(1995, 6, 16, 0, 0, 0, 0, time.UTC).Unix()
-	max = time.Now().UTC().Unix()
-	delta = max - min
-
-	sec = rand.Int63n(delta) + min
-	date = time.Unix(sec, 0).Format("2006-01-02")
-
-	return date
-}