// GetWeek returns the Week field if it's non-nil, zero value otherwise.
197030
func (w *WeeklyCommitActivity) GetWeek() Timestamp {
	if w == nil || w.Week == nil {
		return Timestamp{}
	}
	return *w.Week
}
793141
func (sr *sr_Cyrl_ME) WeekdayShort(weekday time.Weekday) string {
	return sr.daysShort[weekday]
}
1105229
func calcWeekday(daynr int, sundayFirstDayOfWeek bool) int {
	daynr += 5
	if sundayFirstDayOfWeek {
		daynr++
	}
	return daynr % 7
}
405011
func (d date) IsWeekendDay(day time.Weekday) bool {
	return day == time.Saturday || day == time.Sunday
}
503503
func (pt *pt_GW) WeekdayShort(weekday time.Weekday) string {
	return pt.daysShort[weekday]
}
1263846
func (si *si_LK) WeekdayShort(weekday time.Weekday) string {
	return si.daysShort[weekday]
}
593420
func (c *Carbon) AddWeeks(w int) *Carbon {
	return NewCarbon(c.AddDate(0, 0, daysPerWeek*w))
}
181285
func (agq *agq_CM) WeekdayShort(weekday time.Weekday) string {
	return agq.daysShort[weekday]
}
552958
func parseWeekly(weeklyStr string) (RetainIntervalSpec, error) {
	r, weekly, err := parseRetainNumber(weeklyStr)
	if err != nil {
		return r, err
	}
	if weekly == "" {
		return r, fmt.Errorf("Weekly schedule is missing")
	}
	dt := strings.Split(weekly, "@")
	if len(dt) == 1 {
		dt = append(dt, "0:0")
	}
	if len(dt) != 2 {
		return RetainIntervalSpec{},
			fmt.Errorf("Invalid weekly spec %v", weeklyStr)
	}
	d, err := dayOfWeek(dt[0])
	if err != nil {
		return RetainIntervalSpec{}, err
	}
	h, m, err := timeOfDay(dt[1])
	r.IntervalSpec = Weekly(d, h, m).Spec()
	return r, err
}
875288
func (api tagApi) GetTopWeeklyChartList(args map[string]interface{}) (result TagGetWeeklyChartList, err error) {
	defer func() { appendCaller(err, "lastfm.Tag.GetWeeklyChartList") }()
	err = callGet("tag.getweeklychartlist", api.params, args, &result, P{
		"plain": []string{"tag"},
	})
	return
}
713064
func (sq *sq_AL) WeekdayShort(weekday time.Weekday) string {
	return sq.daysShort[weekday]
}
478279
func (cy *cy_GB) WeekdayShort(weekday time.Weekday) string {
	return cy.daysShort[weekday]
}
312766
func WeekStart(dt time.Time, dow time.Weekday) (time.Time, error) {
	return TimeDeltaDowInt(dt.UTC(), int(dow), -1, true, true)
}
1169582
func (vai *vai_Latn_LR) WeekdayShort(weekday time.Weekday) string {
	return vai.daysShort[weekday]
}
584669
func (d date) NextDayOfWeek(after time.Time, dayOfWeek time.Weekday) time.Time {
	afterWeekday := after.Weekday()
	if afterWeekday == dayOfWeek {
		return after.AddDate(0, 0, 7)
	}

	// 1 vs 5 ~ add 4 days
	if afterWeekday < dayOfWeek {
		dayDelta := int(dayOfWeek - afterWeekday)
		return after.AddDate(0, 0, dayDelta)
	}

	// 5 vs 1, add 7-(5-1) ~ 3 days
	dayDelta := 7 - int(afterWeekday-dayOfWeek)
	return after.AddDate(0, 0, dayDelta)
}
345676
func (naq *naq_NA) WeekdayShort(weekday time.Weekday) string {
	return naq.daysShort[weekday]
}
878997
func (ps *ps_AF) WeekdayShort(weekday time.Weekday) string {
	return ps.daysShort[weekday]
}