RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.SecondOfTheYear Function

Returns the number of seconds between a specified TDateTime value and 12:00:00 AM on the first day of the year.

Pascal
function SecondOfTheYear(const AValue: TDateTime): LongWord;
C++
LongWord SecondOfTheYear(const TDateTime AValue);

Call SecondOfTheYear to obtain the number of seconds between AValue and 12:00:00 AM on Jan 1 of the year that includes AValue. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!