PrevUpHomeNext

Struct interval_spec

fd::interval_spec — Specification of an interval.

Synopsis

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


struct interval_spec {

  // public data members
  interval_granularity granularity;
  int factor;  // Determines interval length (span). 
};

Description

interval_spec public public data members

  1. int factor;

    Negative values denote special factor functions and get mapped to special_interval_factor. E.g. granularity=year_interval, factor=4 => every four years E.g. granularity=year_interval, factor=leapyear_interval_factor[-1] => every leap year


PrevUpHomeNext