erikwang2013/erikwang2013.github.io

go中时间范围的获取 | 艾瑞可erik

Opened this issue · 0 comments

https://erik.xyz/2022/06/18/go-stat-data-and-end-data/

获取部分时间范围 123456789101112131415//获得当前月的初始和结束日期func GetMonthDay(types int) (string, string) { now := time.Now() currentYear, currentMonth, _ := now.Date() currentLocation := now.Location()