func firstDayOfISOWeek(year int, week int, timezone *time.Location) time.Time {
date := time.Date(year, 0, 0, 0, 0, 0, 0, timezone)
isoYear, isoWeek := date.ISOWeek()
for date.Weekday() != time.Monday {
// iterate back to Monday
date = date.AddDate(0, 0
golang 通过ISOWeek翻转得到周的日期时间
最新推荐文章于 2023-08-10 20:54:45 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)