I am trying to get the week number based on the timestamp using GoLang.
ts is a int64 and converted
tm := time.UTUnix(ts, 0)
year := tm.Year()
week_nb := ???
for history ts has been generated using:
ts := time.Now().UTC().Unix()
I sent it to a gRPC based server and the server translate it to week number and year.
Any body knows who to convert a ts to a weeknumber ? time library already allow me to get the year but not the week
Thanks