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.

DateTime workDaysBetween

From Catglobe Wiki
Revision as of 10:12, 21 December 2011 by Cg van (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


DateTime_workDaysBetween

Return number of work days between two datetimes

Syntax

DateTime_workDaysBetween(datetime1, datetime2[, array listOfHoliday][, timeZoneId])

Arguments

  • datetime1, datetime2: date time object array
  • istOfHoliday: list of holiday datetime object array
  • timeZoneId: Id of timeZone

Return value

number

Example

array a1 = {2009,6,8,10,10,10,10,19,57};

array a2 = {2009,6,15,12,12,12,10,23,57};

array holiday1 = {2009,6,9,12,12,12,10,23,57};

array holiday2 = {2009,6,10,12,12,12,10,23,57};

number timezoneid = 57;

print(DateTime_workDaysBetween(a1, a2, {holiday1, holiday2},timezoneid));

// result = 3

Availability

Version 5.7