// MonthDays return days of the month/year
498678
func MonthDays(year, month int) int {
	switch month {
	case 1, 3, 5, 7, 8, 10, 12:
		return 31
	case 4, 6, 9, 11:
		return 30
	case 2:
		if IsLeapYear(year) {
			return 29
		}
		return 28
	default:
		panic(fmt.Sprintf("Illegal month:%d", month))
	}
}
1273851
func AddEcbHolidays(c *Calendar) {
	c.AddHoliday(
		ECBGoodFriday,
		ECBEasterMonday,
		ECBNewYearsDay,
		ECBLabourDay,
		ECBChristmasDay,
		ECBChristmasHoliday,
	)
}
52341
func (da *da_DK) WeekdayShort(weekday time.Weekday) string {
	return da.daysShort[weekday]
}
1192243
func GetLastDay(year, month int) int {
	var day = 0
	if month > 0 && month <= 12 {
		day = daysByMonth[month-1]
	}
	if month == 2 && isLeapYear(uint16(year)) {
		day = 29
	}
	return day
}
486052
func AddUsHolidays(cal *Calendar) {
	cal.AddHoliday(
		USNewYear,
		USMLK,
		USPresidents,
		USMemorial,
		USIndependence,
		USLabor,
		USColumbus,
		USVeterans,
		USThanksgiving,
		USChristmas,
	)
}
819674
func (c *Carbon) DiffInWeeks(carb *Carbon, abs bool) int64 {
	if carb == nil {
		carb = nowIn(c.Location())
	}
	return c.DiffInDays(carb, abs) / daysPerWeek
}
244662
func (s *PutRetentionConfigurationInput) SetRetentionPeriodInDays(v int64) *PutRetentionConfigurationInput {
	s.RetentionPeriodInDays = &v
	return s
}
117023
func (c *Carbon) IsSameDay(carb *Carbon) bool {
	n := nowIn(c.Location())
	if carb != nil {
		n = carb
	}

	return c.Year() == n.Year() && c.Month() == n.Month() && c.Day() == n.Day()
}
800741
func (c *Calendar) CountWorkdays(start, end time.Time) int64 {
	factor := 1
	if end.Before(start) {
		factor = -1
		start, end = end, start
	}
	result := 0
	var i time.Time
	for i = start; i.Before(end); i = i.AddDate(0, 0, 1) {
		if c.IsWorkday(i) {
			result++
		}
	}
	if i.Equal(end) && c.IsWorkday(end) {
		result++
	}
	return int64(factor * result)
}
657323
func (dje *dje_NE) WeekdayShort(weekday time.Weekday) string {
	return dje.daysShort[weekday]
}
901455
func (ar *ar_DZ) WeekdayShort(weekday time.Weekday) string {
	return ar.daysShort[weekday]
}
618324
func (dt DateTime) Date() (year int, month time.Month, day int) {
	return dt.t.Date()
}
726
func (kkj *kkj_CM) WeekdayShort(weekday time.Weekday) string {
	return kkj.daysShort[weekday]
}
1213262
func (id *id) WeekdayShort(weekday time.Weekday) string {
	return id.daysShort[weekday]
}
145919
func (s *UpdateScheduledAuditInput) SetDayOfMonth(v string) *UpdateScheduledAuditInput {
	s.DayOfMonth = &v
	return s
}
1294743
func (dav *dav) WeekdayShort(weekday time.Weekday) string {
	return dav.daysShort[weekday]
}
999746
func (s *Transition) SetDays(v int64) *Transition {
	s.Days = &v
	return s
}