DateUtils.HourSpan

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From DateUtils.pas

	function HourSpan(const ANow: TDateTime; const AThen: TDateTime): Double;


Unit: DateUtils

Type: function

Visibility: public

C++ Information

From DateUtils.hpp

	double __fastcall HourSpan(System::TDateTime ANow, System::TDateTime AThen);


Unit: DateUtils

Type: function

Description

Returns the number of hours (including fractional hours) between two specified TDateTime values.


Call HourSpan to obtain the difference, in hours, between two TDateTime values. Unlike the HoursBetween function, which only counts entire hours, HourSpan reports incomplete hours as a fraction of an entire hour.

See Also

Code Samples


Personal tools
Translations
Newest Version