DateTime secondsBetween

From Catglobe Wiki
Jump to: navigation, search


DateTime_secondsBetween

Return seconds between 2 datetimes

Syntax

DateTime_secondsBetween(datetime1, datetime2, timezoneId)

or

DateTime_secondsBetween(datetime1, datetime2)

Arguments

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

Return value

number

Example

array a1 = {2017,2,12,7,39,16,250,7,40};

array a2 = {2017,2,12,7,40,17,300,7,40};

number n = DateTime_secondsBetween (a1, a2);

print(n); //61.05