Sign in Join
FPDoc Onlineexperiment

HourOf function

In unit DateUtils

Extract the hour part from a TDateTime value.

Declaration

pascal
function HourOf(const AValue: TDateTime): Word

Arguments

AValue

Date/time value to extract hour from.

Function result

Hour part of AValue.

Description

HourOf returns the hour of the day part of the AValue date/time indication. It is a number between 0 and 23.

For an example, see YearOf

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.