Difference between revisions of "DateTime daysBetween"

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

 

  

Revision as of 09:49, 21 March 2011



DateTime_daysBetween

Return days between 2 datetimes

Syntax

DateTime_daysBetween(datetime1, datetime2, timezoneId)

or

DateTime_daysBetween(datetime1, datetime2)

Arguments

  • datetime1, datetime2: are array in which we get day span
  • timezoneId: is number. It is timezone Id

Return value

number

Example

array a1 = {2009,5,4,10,10,10,10,19,57};

array a2 = {2009,5,7,12,12,12,10,23,57};

number timezoneid = 40;

print(DateTime_daysBetween(a1,a2,timezoneid));

// result =3

Availability

Version 5.7