type
TMyDateTime = packed record
iYear : Integer;
iMonth : Integer;
iDay : Integer;
iHour : Integer;
iMinute : Integer;
iSecond : Integer;
end;
var
BinDate: TMyDateTime;
DelphiDate: TDateTime;
Stream: TStream;
begin
...
...
FillChar(BinDate, SizeOf(BinDate), 0);
Stream.ReadBuffer(BinDate, SizeOf(BinDate));
with BinDate do
begin
ShowMessage(format('%d年%d月%d日%d点%d分', [iYear,iMonth,iDay,iHour,iMinute,iSecond]));
DelphiDate := EncodeDate(iYear,iMonth,iDay) + EncodeTime(iHour,iMinute,iSecond, 0);
end;
...
...
end;