MinuteOfTheHour

Calculate the number of minutes elapsed since the start of the hour

Declaration

Source position: dateutil.inc line 220

  function MinuteOfTheHour(const AValue: TDateTime) : Word;

Description

MinuteOfTheHour returns the number of minutes that have passed since the start of the Hour (HH:00:00) till the moment indicated by AValue. This is a zero-based number, i.e. HH:00:59 will return 0.

See also

Name Description
MilliSecondOfTheHour Calculate the number of milliseconds elapsed since the start of the hour
MinuteOfTheDay Calculate the number of minutes elapsed since the start of the day
MinuteOfTheMonth Calculate number of minutes elapsed since the start of the month.
MinuteOfTheWeek Calculate the number of minutes elapsed since the start of the week
MinuteOfTheYear Calculate the number of minutes elapsed since the start of the year
SecondOfTheHour Calculate the number of seconds elapsed since the start of the hour

Example

Program Example44;
{ This program demonstrates the MinuteOfTheHour function }
Uses SysUtils,DateUtils;
Var
  N : TDateTime;
Begin
  N:=Now;
  Writeln('Minute of the Hour      : ',MinuteOfTheHour(N));
  Writeln('Second of the Hour      : ',SecondOfTheHour(N));
  Writeln('MilliSecond of the Hour : ',
          MilliSecondOfTheHour(N));
End.