Difference between revisions of "DateTime workDaysBetween"

From Catglobe Wiki
Jump to: navigation, search
(jrfconvert import)
 
Line 1: Line 1:
[[Category:HelpBooks]]
+
[[Category:General_Functions]]
 

 

  

Revision as of 09:54, 21 March 2011



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