ScriptCore3.DecodeTime

From Soldat Community Wiki
Revision as of 09:39, 25 August 2013 by Mighty (talk | contribs) (new page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
procedure DecodeTime(const DateTime: TDateTime; var Hour, Min, Sec, MSec: Word);
 DateTime: TDateTime that is supposed to be decoded
 Hour: Hour based on DateTime
 Min: Minutes based on DateTime
 Sec: Seconds based on DateTime
 MSec: Miliseconds based on DateTime

Description

This function will decode given TDateTime into Hour, Min, Sec and MSec.

Example

var
  h,m,s,ms: Word;

begin
  DecodeTime(0.71001,h,m,s,ms);
  {
  h = 17
  m = 2
  s = 24
  ms = 864
  }
end.