Returns the numeric time value for a described date/time (or the current time). Alias for the standard library function os.time.

According to the Lua manual, the returned value may vary across different systems; however, the Lua libraries included with current WoW clients on both Mac and Windows share the same implementation.

For higher-precision time measurements not convertible to a date, see GetTime().


See also Lua library functions.

Signature:

t = time([timeDesc])

Arguments:

  • timeDesc - Table describing a date and time, as returned by date("*t"); if omitted, uses the current time (table)

Returns:

  • t - Number of seconds elapsed since midnight, January 1, 1970 UTC (number)
This function is defined in the Lua standard libraries