More actions
Nguyenduyan (talk | contribs) Created page with "Category:Group_Functions {{HelpFiles}} = Group_getTimeUsed = == Syntax == Group_getTimeUsed (); == Arguments == Empty == Return type == Empty" |
Nguyenduyan (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
= Group_getTimeUsed = | = Group_getTimeUsed = | ||
Get time used of on users on the group | |||
== Syntax == | == Syntax == | ||
Group_getTimeUsed (); | Group_getTimeUsed (groupRId, includeUnverifiedHour, timeFrom, timeTo, includeDeleted, includeDisabled); | ||
== Arguments == | == Arguments == | ||
number groupRId | |||
bool includeUnverifiedHour | |||
dateTime array timeFrom | |||
dataTime array timeTo | |||
bool includeDeleted | |||
bool includeDisabled | |||
== Return type == | == Return type == | ||
Array. It's array of Analyze_Used_Time array with follow constant: | |||
== Example == | |||
<source lang="javascript"> | |||
number groupRId = 15599634 ; | |||
bool includeUnverifiedHour = true; | |||
array timeFrom = DateTime_getByYMD(2017,1,1); | |||
array timeTo = DateTime_getByYMD(2018,2,1); | |||
bool includeDeleted = true; | |||
bool includeDisabled = true; | |||
array a = Group_getTimeUsed (groupRId, includeUnverifiedHour, timeFrom, timeTo, includeDeleted, includeDisabled);// {{32,10768810,{2017,9,27,0,0,0,0,39,65},1,15596351,60,1}, ....} | |||
array timeUsage = a[0];//{32,10768810,{2017,9,27,0,0,0,0,39,65},1,15596351,60,1} | |||
print(timeUsage[ANALYZE_USED_TIME_USER_RESOURCE_ID]);//10768810 | |||
print(timeUsage[ANALYZE_USED_TIME_DATE]);//{2017,9,27,0,0,0,0,39,65} | |||
print(timeUsage[ANALYZE_USED_TIME_STATUS_ID]);//1 | |||
print(timeUsage[ANALYZE_USED_TIME_RESOURCE_ID]);//15596351 | |||
print(timeUsage[ANALYZE_USED_TIME_TOTAL_TIME]);//60 | |||
print(timeUsage[ANALYZE_USED_TIME_INTEGER_FORMAT]);//1 | |||
</source> |
Revision as of 08:08, 11 January 2018
Group_getTimeUsed
Get time used of on users on the group
Syntax
Group_getTimeUsed (groupRId, includeUnverifiedHour, timeFrom, timeTo, includeDeleted, includeDisabled);
Arguments
number groupRId bool includeUnverifiedHour dateTime array timeFrom dataTime array timeTo bool includeDeleted bool includeDisabled
Return type
Array. It's array of Analyze_Used_Time array with follow constant:
Example
number groupRId = 15599634 ;
bool includeUnverifiedHour = true;
array timeFrom = DateTime_getByYMD(2017,1,1);
array timeTo = DateTime_getByYMD(2018,2,1);
bool includeDeleted = true;
bool includeDisabled = true;
array a = Group_getTimeUsed (groupRId, includeUnverifiedHour, timeFrom, timeTo, includeDeleted, includeDisabled);// {{32,10768810,{2017,9,27,0,0,0,0,39,65},1,15596351,60,1}, ....}
array timeUsage = a[0];//{32,10768810,{2017,9,27,0,0,0,0,39,65},1,15596351,60,1}
print(timeUsage[ANALYZE_USED_TIME_USER_RESOURCE_ID]);//10768810
print(timeUsage[ANALYZE_USED_TIME_DATE]);//{2017,9,27,0,0,0,0,39,65}
print(timeUsage[ANALYZE_USED_TIME_STATUS_ID]);//1
print(timeUsage[ANALYZE_USED_TIME_RESOURCE_ID]);//15596351
print(timeUsage[ANALYZE_USED_TIME_TOTAL_TIME]);//60
print(timeUsage[ANALYZE_USED_TIME_INTEGER_FORMAT]);//1