PrevUpHomeNext

Function derive_clocked_timepoint

fd::derive_clocked_timepoint — Derive a new schedule time point according to the specified granularity by adding the specified onset to the relative origin of a schedule time point.

Synopsis

// In header: <fd/functional.h>


schedule_timepoint 
derive_clocked_timepoint(const schedule_timepoint & tp, 
                         const interval_onset & onset, 
                         interval_granularity g);

Description

'Clocked' means that several points in time are created that are all at the same interval granularity, and is also used for that purpose by the timepoint generator.

E.g. for a day interval: 'snap' to beginning of the day, then add 'hour:minute:second'.


PrevUpHomeNext