Get the current week in GoLang
package main import ( "fmt" "time" ) func main() { timeNow := time.Now().UTC() year, week := timeNow.ISOWeek() fmt.Println(year, week) }
package main import ( "fmt" "time" ) func main() { timeNow := time.Now().UTC() year, week := timeNow.ISOWeek() fmt.Println(year, week) }
Recent Comments