//copy from DateUtils.pas for Delphi6
function MinuteOf(const AValue: TDateTime): Word;
var
LHour, LSecond, LMilliSecond: Word;
begin
DecodeTime(AValue, LHour, Result, LSecond, LMilliSecond);
end;
function MinuteOf(const AValue: TDateTime): Word;
var
LHour, LSecond, LMilliSecond: Word;
begin
DecodeTime(AValue, LHour, Result, LSecond, LMilliSecond);
end;
year,month,date : word;
hour,min,sec,msec : word;
begin
decodedate(now,year,month,date); //分离日期
decodetime(now,hour,min,sec,msec); //分离时间
end;