Function Reference


_WinAPI_StrFromTimeInterval

Converts a time interval to a string

#include <WinAPIConv.au3>
_WinAPI_StrFromTimeInterval ( $iTime [, $iDigits = 7] )

Parameters

$iTime The time interval, in milliseconds.
$iDigits [optional] The maximum number of significant digits to be represented in converted string. Default is 7.

Return Value

Success: The converted string.
Failure: Empty string and sets the @error flag to non-zero.

Remarks

The time value returned in converted string will always be in the form (hh) hours (mm) minutes (ss) seconds.
Times that exceed twenty four hours are not converted to days or months.

See Also

Search StrFromTimeInterval in MSDN Library.

Example

#include <WinAPIConv.au3>
#include <WinAPISys.au3>

ConsoleWrite(_WinAPI_StrFromTimeInterval(_WinAPI_GetTickCount()) & @CRLF)

ConsoleWrite('"' & _WinAPI_StrFromTimeInterval(-1, 0) & '" @error = ' & @error & ' @extended = 0x' & Hex(@extended) & @CRLF)