Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
I don't program in Go, but I googled the answer in a minute
t1 := time.Date(2018, time.Month(1), 1, 0, 0, 0, 0, time.UTC)
t2 := time.Date(2019, time.Month(1), 1, 0, 0, 0, 0, time.UTC)
days := t2.Sub(t1).Hours() / 24
fmt.Println(days)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question