Replace minutes part of a TDateTime value with another minute.
Source position: dateutil.inc line 371
| function RecodeMinute( | 
| const AValue: TDateTime; | 
| const AMinute: Word | 
| ):TDateTime; | 
| AValue | 
 | Date/time to recode. | 
| AMinute | 
 | Minute to replace in AValue. | 
AValue with replaced minute.
RecodeMinute replaces the Minute part of the timestamp AValue with AMinute. All other parts of the date/time stamp are left untouched.
If the AMinute value is not within a valid range (0..59) then an EConvertError exception is raised.
| 
 | Replace year part of a TDateTime value with another year. | |
| 
 | Replace month part of a TDateTime value with another month. | |
| 
 | Replace day part of a TDateTime value with another day. | |
| 
 | Replace hours part of a TDateTime value with another hour. | |
| 
 | Replace seconds part of a TDateTime value with another second. | |
| 
 | Replace milliseconds part of a TDateTime value with another millisecond. | |
| 
 | Replace date part of a TDateTime value with another date. | |
| 
 | Replace time part of a TDateTime value with another time. | |
| 
 | Replace selected parts of a TDateTime value with other values. | 
Program Example91; { This program demonstrates the RecodeMinute function } Uses SysUtils,DateUtils; Const Fmt = 'dddd dd mmmm yyyy hh:nn:ss'; Var S : AnsiString; Begin S:=FormatDateTime(Fmt,RecodeMinute(Now,0)); Writeln('This moment in the first minute of the hour: ',S); End.