System.DateUtils.HourOf

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function HourOf(const AValue: TDateTime): Word;

C++

extern DELPHI_PACKAGE System::Word __fastcall HourOf(const System::TDateTime AValue);

Properties

Type Visibility Source Unit Parent
function public
System.DateUtils.pas
System.DateUtils.hpp
System.DateUtils System.DateUtils

Description

Returns the hour of the day represented by a TDateTime value.

Call HourOf to obtain the hour of the day represented by a specified TDateTime value. HourOf returns a value from 0 through 23.

Note: HourOf returns the same value as the HourOfTheDay function.

See Also


Code Examples