cal_and_ts added. time.c works now.