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.

Timereg getByUsers: Difference between revisions

From Catglobe Wiki
Created page with "Category:Functions {{HelpFiles}} =Timereg_getByUsers= Returns a dictionary where keys are resource ids and value is a dictionary where the key is the userid and th..."
 
No edit summary
Line 22: Line 22:
===Examples===
===Examples===
<source lang="javascript">
<source lang="javascript">
array dateStart = DateTime_fromInvariant("2016-01-05 00:00:00");
array dateStart = DateTime_fromInvariant("2016-01-05 00:00:00");
array dateEnd = DateTime_fromInvariant("2016-02-05 00:00:00");
array dateEnd = DateTime_fromInvariant("2016-02-05 00:00:00");
 
Dictionary regtime = Timereg_getByUsers({717536}, dateStart, dateEnd);
Dictionary regtime = Timereg_getByUsers({717536}, dateStart, dateEnd);
</source>
</source>
__NOTOC__
__NOTOC__

Revision as of 09:18, 5 February 2016



Timereg_getByUsers

Returns a dictionary where keys are resource ids and value is a dictionary where the key is the userid and the value is a list of timereg arrays ordered by the date.

Syntax

Timereg_getByUsers(UserResourceId, dateStart, dateEnd)

Arguments

  • UserResourceId: is a array user resource id
  • dateStart: is a array datetime
  • dateEnd: is a array datetime

Return type

Dictionary

Examples

array dateStart = DateTime_fromInvariant("2016-01-05 00:00:00");
array dateEnd = DateTime_fromInvariant("2016-02-05 00:00:00");
Dictionary regtime = Timereg_getByUsers({717536}, dateStart, dateEnd);