Sha256: 91e80a7806fa6d5990a9062135d2f261b88d2fffca376812bff621c483c20548
Contents?: true
Size: 447 Bytes
Versions: 122
Compression:
Stored size: 447 Bytes
Contents
package meetup import "time" type WeekSchedule int const ( First WeekSchedule = 1 Second = 8 Third = 15 Fourth = 22 Teenth = 13 Last = -6 ) func Day(wSched WeekSchedule, wDay time.Weekday, month time.Month, year int) int { if wSched == Last { month++ } t := time.Date(year, month, int(wSched), 12, 0, 0, 0, time.UTC) return t.Day() + int(wDay-t.Weekday()+7)%7 }
Version data entries
122 entries across 122 versions & 1 rubygems