[Overview][Constants][Procedures and functions][Index] Reference for unit 'dateutils' (#rtl)

SecondOfTheHour

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

Declaration

Source position: dateutil.inc line 221

function SecondOfTheHour(

  const AValue: TDateTime

):Word;

Arguments

AValue

  

Moment in the hour

Function result

Number of seconds elapsed since the start of the hour

Description

SecondOfTheHour returns the number of seconds 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:00.999 return 0.

For an example, see the MinuteOfTheHour function.

See also

SecondOfTheYear

  

Calculate the number of seconds elapsed since the start of the year.

SecondOfTheMonth

  

Calculate number of seconds elapsed since the start of the month.

SecondOfTheWeek

  

Calculate the number of seconds elapsed since the start of the week

SecondOfTheDay

  

Calculate the number of seconds elapsed since the start of the day

SecondOfTheMinute

  

Calculate the number of seconds elapsed since the start of the minute

MinuteOfTheHour

  

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

MilliSecondOfTheHour

  

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


Documentation generated on: Nov 16 2015