local nHour, nMinute, nSecond, nMillisec = gettime ()
Returns the current time as four values: hours, minutes, seconds, milliseconds.
Getdate
Windows API - GetSystemTime function