From Clomosy Docs

Revision as of 13:04, 27 February 2023 by ClomosyManager (talk | contribs) (Created page with " procedure DecodeTime(const SourceDateTime TclDateTime; out Hour, Min, Sec, MSec Word); The DecodeTime procedure extracts the hours, minutes, seconds, and milliseconds from a given TclDateTime type value.<br> It stores the values ​​in output variables: Hour, Min, Sec and MSec. '''Example:'''<br> '''var''' myHour, myMin, mySec, myMilli : Word;<br> '''begin''' DecodeTime(Now, myHour, myMin, mySec, myMilli); ShowMessage('Time now = '+TimeToStr(Now)); Sh...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

procedure DecodeTime(const SourceDateTime TclDateTime; out Hour, Min, Sec, MSec Word);

The DecodeTime procedure extracts the hours, minutes, seconds, and milliseconds from a given TclDateTime type value.

It stores the values ​​in output variables: Hour, Min, Sec and MSec.

Example:

var
  myHour, myMin, mySec, myMilli : Word;
begin DecodeTime(Now, myHour, myMin, mySec, myMilli); ShowMessage('Time now = '+TimeToStr(Now)); ShowMessage('Hour = '+IntToStr(myHour)); ShowMessage('Minute = '+IntToStr(myMin)); ShowMessage('Second = '+IntToStr(mySec)); ShowMessage('MilliSec = '+IntToStr(myMilli)); end;

Output:

Time Now = 16:02:07
Hour = 16
Minute = 2
Second = 7
MilliSec = 807