Delphi Basics Home  |  Delphi Basics .NET Home  |  System.TimeSpan  |  FromMinutes Method
FromMinutes  
Method  
Creates a TimeSpan value from a given number of minutes
TimeSpan Structure
System NameSpace
CF1.  Function FromMinutes ( Minutes : Double ) : TimeSpan; Static;
CF : Methods with this mark are Compact Framework Compatible
Description
Converts the Minutes 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
System.TimeSpan.FromMinutes
 
A simple example
program Project1;
{$APPTYPE CONSOLE}

var
  span : TimeSpan;

begin
  span := System.TimeSpan.FromMinutes(180);

  Console.WriteLine('180 minutes = {0}', span);

  Console.ReadLine;
end.
   180 minutes = 03:00:00
 
© CodeGear 2006 - 2007. All rights reserved.