DCS addPeriod

From Catglobe Wiki
Jump to: navigation, search



DCS_addPeriod

Add a period of time to a questionnaire cache's time frame

Syntax

DCS_addPeriod(fromDate,toDate)

Arguments

  • fromDate: is an array, it must follow the format of what generated by getDateTime function
  • toDate: is an array, it must follow the format of what generated by getDateTime function

Return type

None

Examples

DCS_clearPeriods();

array start = {2011, 3, 24, 0, 0, 0, 0, 12, 63};

array end = {2011, 12, 24, 0, 0, 0, 0, 51, 63};

DCS_addPeriod(start, end);

DCS_save();

DCS - Time frame.jpg

Availability

Version 5.5