Returns the number of seconds between two time values. Alias for the standard library function os.difftime.


See also Lua library functions.

Signature:

seconds = difftime(time2, time1)

Arguments:

  • time2 - A time value (see time() for description) (number)
  • time1 - A time value (see time() for description) (number)

Returns:

  • seconds - Number of seconds between time2 and time1; equivalent to time2 - time1 on all current WoW clients (number)
This function is defined in the Lua standard libraries