System.DateUtils.HourOfTheDay

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function HourOfTheDay(const AValue: TDateTime): Word;

C++

extern DELPHI_PACKAGE System::Word __fastcall HourOfTheDay(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 HourOfTheDay to obtain the hour of the day represented by a specified TDateTime value. HourOf returns a value between 0 and 23.

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

See Also


Code Examples