Sign in Join
FPDoc Onlineexperiment

SecondOfTheWeek function

In unit DateUtils

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

Declaration

pascal
function SecondOfTheWeek(const AValue: TDateTime): LongWord

Arguments

AValue

Moment in the week.

Function result

Number of seconds elapsed since the start of the week.

Description

SecondOfTheWeek returns the number of seconds that have passed since the start of the week (00:00:00) till the moment indicated by AValue. This is a zero-based number, i.e. 00:00:00.999 on the first day of the week will return 0.

For an example, see the DayOfTheWeek function.

See also

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