# Domain/OS Calls: cal_$

## Calendar

`

- void cal_$add_clock(time_$clock_t *clock1, time_$clock_t &clock2);
- void cal_$apply_local_offset(time_$clock_t *clock_value);
- unsigned long cal_$clock_to_sec(time_$clock_t &clock_value);
- void cal_$clock_to_timeval(cal_$rel_abs_t &rel_abs, time_$clock_t &clock, time_$timeval_t *tv);
- short cal_$cmp_clock(time_$clock_t &clock1, time_$clock_t &clock2);
- cal_$days_per_month
- void cal_$decode_ascii_date(char *date_string, short &string_length, short *year, short *month, short *day, status_$t *status);
- void cal_$decode_ascii_dt(char *date_and_time_string, short &string_length, cal_$timedate_rec_t *td, boolean *time_spec, status_$t *status);
- void cal_$decode_ascii_time(char *time_string, short &string_length, short *hour, short *minute, short *second, status_$t *status);
- void cal_$decode_ascii_tzdif(char *tz_string, short &string_length, short *tz_diff, cal_$tz_name_t *tz_name, status_$t *status);
- void cal_$decode_local_time(cal_$timedate_rec_t *local_date_time);
- void cal_$decode_time(time_$clock_t &clock_value, cal_$timedate_rec_t *date_time);
- void cal_$encode_time(cal_$timedate_rec_t &date_time, time_$clock_t *clock_value);
- void cal_$float_clock(time_$clock_t &clock_value, double *float_seconds);
- void cal_$get_info(cal_$timezone_rec_t *time_zone);
- void cal_$get_local_time(time_$clock_t *clock_value);
- void cal_$read_timezone(cal_$timezone_rec_t *tz_rec, status_$t *status);
- void cal_$remove_local_offset(time_$clock_t *clock_value);
- void cal_$sec_to_clock(unsigned long &seconds, time_$clock_t *clock_value);
- void cal_$set_drift(clock_$t &drift);
- boolean cal_$sub_clock(time_$clock_t *clock1, time_$clock_t &clock2);
- boolean cal_$timeval_to_clock(cal_$rel_abs_t &rel_abs, time_$timeval_t &timeval, time_$clock_t *clock);
- cal_$weekday_t cal_$weekday(short &year, short &month, short &day);
- void cal_$write_calendar(short &year, short &month, short &day, cal_$weekday_t &weekday, short &hour, short &minute, short &second);
- void cal_$write_timezone(cal_$timezone_rec_t &time_zone, status_$t *status);

`