DateTime workDaysBetween

From Catglobe Wiki
Revision as of 09:59, 7 March 2011 by 127.0.0.1 (talk | contribs) (jrfconvert import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



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