[Overview][Constants][Procedures and functions][Index] Reference for unit 'dateutils' (#rtl)


Try to encode an interval as a TDateTime value.


Source position: dateutil.inc line 338

function TryEncodeTimeInterval(

  Hour: Word;

  Min: Word;

  Sec: Word;

  MSec: Word;

  out Time: TDateTime



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



Encode an interval as a TDateTime value.

Documentation generated on: Mar 17 2017