Timereg getByUsers

From Catglobe Wiki
Revision as of 10:18, 5 February 2016 by Lekhacbaongoc (talk | contribs)
Jump to: navigation, search



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