Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

DCS addPeriod: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
Cg van (talk | contribs)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[Category:Data_Cache_Functions]]
{{HelpFiles}}

 
==== DCS_addPeriod ====
 
Add a period of time to a questionnaire cache's time frame
 
'''Syntax'''
 
DCS_addPeriod(''fromDate,toDate'')


====DCS_addPeriod====
'''Arguments'''


Add a period of time to a questionnaire cache's time frame
*''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


'''Syntax'''
'''Return type'''  


DCS_addPeriod(''fromDate,toDate'')
None


'''Arguments'''
'''Examples'''  


* ''fromDate: ''is an array, it must follow the format of what generated by ''getDateTime ''function
''DCS_clearPeriods();''
* ''toDate'': is an array, it must follow the format of what generated by ''getDateTime ''function


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


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


'''Examples'''
''DCS_addPeriod(start, end);''<br>


''array start = {2008, 1, 24, 0, 0, 0, 0, 4, 63}; ''
''DCS_save();''<br>


''array end = {2008, 1, 25, 0, 0, 0, 0, 4, 63}; ''
[[Image:DCS_-_Time_frame.jpg]]


''DCS_addPeriod(start, end); ''
'''Availability'''  


'''Availability'''
Version 5.5 __NOTOC__ <!-- imported from file: 5581.htm-->


Version 5.5
[[Category:Data_Cache_Functions]]
__NOTOC__
<!-- imported from file: 5581.htm-->

Latest revision as of 05:02, 20 December 2011



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();

Availability

Version 5.5