Sign in Join
FPDoc Onlineexperiment

HourOfTheMonth function

In unit DateUtils

Calculate the number of hours passed since the start of the month.

Declaration

pascal
function HourOfTheMonth(const AValue: TDateTime): Word

Arguments

AValue

TDateTime value for which to calculate the hour of the month.

Function result

Number of hours passed since the start of the month till AValue.

Description

HourOfTheMonth returns the number of hours that have passed since the start of the month till the moment indicated by AValue. This is a zero-based number, i.e. 00:59:59 on the first day of the month will return 0.

For an example, see the WeekOfTheMonth function.

See also

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