Logo Search packages:      
Sourcecode: libical version File versions  Download package

int icalrecurrencetype_day_position ( short  day  ) 

0 == any of day of week. 1 == first, 2 = second, -2 == second to last, etc

Definition at line 2329 of file icalrecur.c.

References icalrecurrencetype_day_day_of_week().

Referenced by expand_by_day(), and icalrecur_iterator_new().

{
    int wd, pos;

    wd = icalrecurrencetype_day_day_of_week(day);

    pos = (abs(day)-wd)/8 * ((day<0)?-1:1);


    return pos;
}


Generated by  Doxygen 1.6.0   Back to index