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 daysBetween: Difference between revisions

From Catglobe Wiki
Tungocman (talk | contribs)
No edit summary
Tungocman (talk | contribs)
 
Line 26: Line 26:


array a1 = {2015,10,22,3,2,9,418,43,0};
array a1 = {2015,10,22,3,2,9,418,43,0};
array a2 = {2015,10,28,3,2,9,418,43,0};
array a2 = {2015,10,28,3,2,9,418,43,0};
number timezoneid = 40;
number timezoneid = 40;
print(DateTime_daysBetween(a1,a2,timezoneid));
print(DateTime_daysBetween(a1,a2,timezoneid));
// result = 6
// result = 6

Latest revision as of 03:05, 22 October 2015



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 = {2015,10,22,3,2,9,418,43,0};

array a2 = {2015,10,28,3,2,9,418,43,0};

number timezoneid = 40;

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

// result = 6