80
)
81
82
>
func newCompiledCalendar(cal *schedulepb.StructuredCalendarSpec, tz *time.Location) *compiledCalendar {
calendar.go
83
>
return &compiledCalendar{
84
>
tz: tz,
85
>
year: makeYearMatcher(cal.Year),
86
>
month: makeBitMatcher(cal.Month),
87
>
dayOfMonth: makeBitMatcher(cal.DayOfMonth),
88
>
dayOfWeek: makeBitMatcher(cal.DayOfWeek),
89
>
hour: makeBitMatcher(cal.Hour),
90
>
minute: makeBitMatcher(cal.Minute),
91
>
second: makeBitMatcher(cal.Second),
92
>
}
93
>
}
94
95
// Returns true if the given time matches this calendar spec.