tm_calc
ret = tm_calc(tm, buf, TIME_NUM);
ret = tm_calc(&alrm->time, buf, TIME_NUM);
tm_calc(rycr, rdcr, tm);
tm_calc(ryar, rdar, &alrm->time);