Sign in Join
FPDoc Onlineexperiment

MilliSecondOfTheYear function

In unit DateUtils

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

Declaration

pascal
function MilliSecondOfTheYear(const AValue: TDateTime): Int64

Arguments

AValueTDateTime value used to calculate the millisecond number in the year.

Function result

Number of seconds elapsed since the start of the year.

Description

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

For an example, see the WeekOfTheYear function.

See also

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