Array Encoding The 'day' element of the by_day array is encoded to allow representation of both the day of the week ( Monday, Tueday), but also the Nth day of the week ( First tuesday of the month, last thursday of the year) These routines decode the day values 1 == Monday, etc. The 'day' element of icalrecurrencetype_weekday is encoded to allow representation of both the day of the week ( Monday, Tueday), but also the Nth day of the week ( First tuesday of the month, last thursday of the year) These routines decode the day values. The day's position in the period ( Nthness) and the numerical value of the day are encoded together as: pos*7 + dow A position of 0 means 'any' or 'every' Definition at line 2324 of file icalrecur.c. Referenced by expand_by_day(), icalrecur_iterator_new(), and icalrecurrencetype_day_position(). {
return abs(day)%8;
}
