@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: Converts a time interval, specified in milliseconds, to a string. !!!!C# Signature: [DllImport("Shlwapi.dll", CharSet = CharSet.Auto)] static extern int StrFromTimeInterval([MarshalAs(UnmanagedType.LPWStr)] StringBuilder buffer, uint bufferSize, uint milliSeconds, int digits); !!!!VB Signature: Declare Function StrFromTimeInterval Lib "Shlwapi.dll" (TODO) As TODO !!!!User-Defined Types: None. !!!!Alternative Managed API: Do you know one? Please contribute it! !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: public static string ToStrFormatTimeSpan(this TimeSpan timeSpan, int digits) { StringBuilder sb = new StringBuilder(); NativeMethods.StrFromTimeInterval(sb, (uint) sb.Capacity, (uint) timeSpan.TotalMilliseconds, digits); return sb.ToString(); } Documentation: https://msdn.microsoft.com/en-US/library/windows/desktop/bb759980
Edit shlwapi.StrFromTi...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.