rem: time_t tt = icaltime_as_timet(t);
add: time_t tt;
context: short icaltime_day_of_year(struct icaltimetype t){    time_t tt = icaltime_as_timet(t);    struct tm *stm;    if(t.is_utc==1){	stm = gmtime(&tt);    } else {	stm = localtime(&tt);    }    return stm->tm_yday+1;    }