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.

User updateUserHourlyCost

From Catglobe Wiki
Revision as of 09:11, 7 March 2011 by Catglobe (talk | contribs) (jrfconvert import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



User_updateUserHourlyCost

Update user's hourly cost

Syntax

User_updateUserHourlyCosts(userResourceId,index,userHourlyCosts)

Arguments

  • userResourceId: is a number expression. It is the user's resource id
  • index: is number. It is the index of hourly cost which is updated
  • userHourlyCosts: is array in which:

Index

Data type

Value

USER_HOURLY_COST_START_DATE

array

User's hourly cost start date object array (with time zone is user's time zone)

USER_HOURLY_COST_END_DATE

array

User's hourly cost end date object array (with time zone is user's time zone)

USER_HOURLY_COST_VALUE

number

User's hourly cost value

Return value

empty

Example

number userResourceId = 34780089;

number index = 1;

array userHourlyCosts = {{2009,7,27,0,0,0,0,31,40} , {2009,8,27,0,0,0,0,35,40},2.3};

User_updateUserHourlyCosts(userResourceId,index,userHourlyCosts);

print(User_getUserHourlyCosts(userResourceId));

Availability

Version 5.7