help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

MilliSecondOfTheYear

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

Declaration

Source position: dateutil.inc line 181

function MilliSecondOfTheYear(

  const AValue: TDateTime

):Int64;

Arguments

AValue

  

Moment 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

WeekOfTheYear

  

Extract the week of the year (and optionally year) of a DateTime indication.

DayOfTheYear

  

Extracts the day of the year from a TDateTime value

HourOfTheYear

  

Calculate the number of hours passed since the start of the year.

MinuteOfTheYear

  

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

SecondOfTheYear

  

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

MilliSecondOfTheYear

  

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

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505