Add duration_set_time() to set the duration based on a time_t.
Started implementing the new signconf logic.