Home  |  Delphi .net Home  |  System.TimeSpan  |  FromMilliseconds Method
  
FromMilliseconds  
Method  
Creates a TimeSpan value from a given number of milliseconds
TimeSpan Structure
System NameSpace
CF1.  Function FromMilliseconds ( Milliseconds : Double ) : TimeSpan; Static;
CF : Methods with this mark are Compact Framework Compatible
Description
Converts the Milliseconds value into the equivalent number of ticks (0.0000001 seconds) in a new TimeSpan value and returns this.
Notes
Static methods are not methods of an object - they are simply class functions or procedures available at any time.
Microsoft MSDN Links
System
System.TimeSpan
 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

 Buy Proxies at
 Buyproxies.io
 
 
 
A simple example
program Project1;
{$APPTYPE CONSOLE}

var
  span : TimeSpan;

begin
  span := System.TimeSpan.FromMilliseconds(12345);

  Console.WriteLine('12345 milliseconds = {0}', span);

  Console.ReadLine;
end.
   12345 milliseconds = 00:00:12.3450000
 
 
Delphi Programming Neil Moffatt 2002 - 2017. All rights reserved.  |  Contact the author