TryEncodeTimeInterval function
Try to encode an interval as a
TDateTime value.
Declaration
function TryEncodeTimeInterval(Hour: Word; Min: Word; Sec: Word;
MSec: Word; out Time: TDateTime): BooleanDescription
TryEncodeTimeInterval encodes a time interval expressed in
Hour,
Min,
Sec,
MSec as a
TDateTime value and returns the value in
Time. It
returns
True if
Min,
Sec,
MSec
contain valid time values (i.e. less than 60, 60 resp. MSec). The number of
hours may be larger than 24.See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
