| [Overview][Constants][Procedures and functions][Index] | 
Calculate the number of seconds elapsed since the start of the minute
Source position: dateutil.inc line 229
| function SecondOfTheMinute( | 
| const AValue: TDateTime | 
| ):Word; | 
| AValue | 
 | Moment in the minute | 
Number of seconds elapsed since the start of the minute
SecondOfTheMinute returns the number of seconds that have passed since the start of the minute (HH:MM:00) till the moment indicated by AValue. This is a zero-based number, i.e. HH:MM:00.999 return 0.
| 
 | Calculate the number of seconds elapsed since the start of the year. | |
| 
 | Calculate number of seconds elapsed since the start of the month. | |
| 
 | Calculate the number of seconds elapsed since the start of the week | |
| 
 | Calculate the number of seconds elapsed since the start of the day | |
| 
 | Calculate the number of seconds elapsed since the start of the hour | |
| 
 | Calculate the number of milliseconds elapsed since the start of the minute | 
Program Example45; { This program demonstrates the SecondOfTheMinute function } Uses SysUtils,DateUtils; Var N : TDateTime; Begin N:=Now; Writeln('Second of the Minute : ',SecondOfTheMinute(N)); Writeln('MilliSecond of the Minute : ', MilliSecondOfTheMinute(N)); End.