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

Timereg addUsers: Difference between revisions

From Catglobe Wiki
Nguyenduyan (talk | contribs)
Created page with "Category:Timereg_Functions === Timereg_addUsers === Add users inside a group to the timereg period === Syntax === Timereg_addUsers(timeregPeriod, groupRId); === Argum..."
 
Nguyenduyan (talk | contribs)
No edit summary
 
Line 23: Line 23:
Timereg_addUsers(timeregPeriod, groupRId);
Timereg_addUsers(timeregPeriod, groupRId);
</source>
</source>
[[File:Timereg_addUsers.png]]

Latest revision as of 09:49, 31 May 2017


Timereg_addUsers

Add users inside a group to the timereg period

Syntax

Timereg_addUsers(timeregPeriod, groupRId);

Arguments

  • timeregPeriod: DateTime array. Find first timereg period that contains this date
  • groupRId: resource Id of group that contains users

Return type

number of users are added to the Timereg period

Example

DateTime dt = new DateTime("2017-05-18");
array timeregPeriod = dt.AsArray;
number groupRId = 6397;
Timereg_addUsers(timeregPeriod, groupRId);