Home  |  Delphi .net Home  |  System.TimeSpan  |  FromDays Method
  
FromDays  
Method  
Creates a TimeSpan value from a given number of days
TimeSpan Structure
System NameSpace
CF1.  Function FromDays ( Days : Double ) : TimeSpan; Static;
CF : Methods with this mark are Compact Framework Compatible
Description
Converts the Days 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.FromDays(1.2);

  Console.WriteLine('1.2 days = {0}', span);

  Console.ReadLine;
end.
   1.2 days = 1.04:48:00
 
 
Delphi Programming Neil Moffatt 2002 - 2017. All rights reserved.  |  Contact the author