Initial Commit

This commit is contained in:
idanoo 2023-01-30 10:56:54 +13:00
commit 4e9199bf3e
Signed by: idanoo
GPG key ID: 387387CDBC02F132
12 changed files with 267 additions and 0 deletions

View file

@ -0,0 +1,16 @@
package gomastodonstats
import (
"log"
"time"
)
func getStartofDay() time.Time {
localTime, err := time.LoadLocation(TIMEZONE)
if err != nil {
log.Fatal(err)
}
t := time.Now().In(localTime)
year, month, day := t.Date()
return time.Date(year, month, day, 0, 0, 0, 0, t.Location())
}