System.TimeSpan.TTimeSpan.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(ATicks: Int64); overload;
constructor Create(Hours, Minutes, Seconds: Integer); overload;
constructor Create(Days, Hours, Minutes, Seconds: Integer); overload;
constructor Create(Days, Hours, Minutes, Seconds, Milliseconds: Integer); overload;

C++

__fastcall TTimeSpan(__int64 ATicks)/* overload */;
__fastcall TTimeSpan(int Hours, int Minutes, int Seconds)/* overload */;
__fastcall TTimeSpan(int Days, int Hours, int Minutes, int Seconds)/* overload */;
__fastcall TTimeSpan(int Days, int Hours, int Minutes, int Seconds, int Milliseconds)/* overload */;
TTimeSpan() {}

Properties

Type Visibility Source Unit Parent
constructor public
System.TimeSpan.pas
System.TimeSpan.hpp
System.TimeSpan TTimeSpan

Description

Creates and initializes a TTimeSpan instance.

Call Create to create and initialize a TTimeSpan instance.

The default implementation of the Create method has a single parameter, ATicks, which specifies the number of ticks in a time span. The Create method has several overloads. The parameters of the overloads are listed in the following table.

Parameter Meaning

Days

Number of days in a time interval.

Hours

Number of hours in a time interval.

Minutes

Number of minutes in a time interval.

Seconds

Number of seconds in a time interval.

Milliseconds

Number of milliseconds in a time interval.