Skip to content

MilliSecondOfTheWeek

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

Declaration

Source position: dateutil.inc line 205

  function MilliSecondOfTheWeek(const AValue: TDateTime) : LongWord;

Description

MilliSecondOfTheWeek returns the number of milliseconds that have passed since the start of the Week (00:00:00.000) till the moment indicated by AValue. This is a zero-based number, i.e. 00:00:00.000 on the first of the Week will return 0.

For an example, see the DayOfTheWeek function.

See also

Name Description
DayOfTheWeek Extracts the day of the week from a TDateTime value
HourOfTheWeek Calculate the number of hours elapsed since the start of the week.
MilliSecondOfTheDay Calculate the number of milliseconds elapsed since the start of the day
MilliSecondOfTheHour Calculate the number of milliseconds elapsed since the start of the hour
MilliSecondOfTheMinute Calculate the number of milliseconds elapsed since the start of the minute
MilliSecondOfTheMonth Calculate number of milliseconds elapsed since the start of the month.
MilliSecondOfTheSecond Calculate the number of milliseconds elapsed since the start of the second
MilliSecondOfTheYear Calculate the number of milliseconds elapsed since the start of the year.
MinuteOfTheWeek Calculate the number of minutes elapsed since the start of the week
SecondOfTheWeek Calculate the number of seconds elapsed since the start of the week