Copyright © 2006 - 2008 MultiMedia Soft 
Return to Table of contents  
 
 
GetFormattedTime method 
 
Remarks 
 
Given an amount of time, expressed in milliseconds, retrieves a string containing the formatted time using the following format [hh:mm:ss:ms(3)] in which hh is for hours, mm is for minutes, ss is for seconds and ms(3) are three characters representing the milliseconds. For example [04:34:200] indicates a time of 0 hours (the hours number is automatically omitted if 0), 4 minutes, 34 seconds and 200 milliseconds.  
 
 
Syntax 
 
[Visual Basic] 
Public Function GetFormattedTime
nTimeInMs as Int32, 
bShowHour as Boolean, 
bShowMs as Boolean 
) as String
 
[C#] 
public string GetFormattedTime
Int32 nTimeInMs 
bool bShowHour
bool bShowMs 
);
 
[C++] 
public: string GetFormattedTime
Int32 nTimeInMs 
bool bShowHour
bool bShowMs 
);
 
 
Parameter
Description
 
 
nTimeinMs
Time, expressed in milliseconds, to convert to a formatted string
bShowHour
Boolean value that tells the player to avoid displaying the 'hour' position field 
 
Value
Meaning
false
Doesn't show hour value
true
Shows hour value
bShowMs
Boolean value that tells the player to avoid displaying the 'milliseconds' position field 
 
Value
Meaning
false
Doesn't show milliseconds value
true
Shows milliseconds value
 
 
Return value 
 
Value
Meaning
 
 
Empty string
An error occurred (see the LastError property for further error details)
Valid string
The formatted time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Copyright © 2006 - 2008 MultiMedia Soft 
Return to Table of contents