<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=ScriptCore3.TryEncodeTime</id>
		<title>ScriptCore3.TryEncodeTime - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=ScriptCore3.TryEncodeTime"/>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=ScriptCore3.TryEncodeTime&amp;action=history"/>
		<updated>2026-05-03T09:49:10Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.soldat.pl/index.php?title=ScriptCore3.TryEncodeTime&amp;diff=1195&amp;oldid=prev</id>
		<title>Mighty: new page</title>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=ScriptCore3.TryEncodeTime&amp;diff=1195&amp;oldid=prev"/>
				<updated>2013-08-25T09:07:11Z</updated>
		
		<summary type="html">&lt;p&gt;new page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; '''function TryEncodeTime(Hour, Min, Sec, MSec: Word; var Date: [[TDateTime]]): Boolean;'''&lt;br /&gt;
  Hour: Hours to be encoded&lt;br /&gt;
  Min: Minutes to be encoded&lt;br /&gt;
  Sec: Seconds to be encoded&lt;br /&gt;
  MSec: Miliseconds to be encoded&lt;br /&gt;
  Date: Encoding result&lt;br /&gt;
  Result: whether conversion has been successfull;&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This function is equivalent to {{link|ScriptCore3|EncodeTime}}, however, it allows to check whether encoding has been successfull.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
var&lt;br /&gt;
  h,m,s: Word;&lt;br /&gt;
  currtime: TDateTime;&lt;br /&gt;
begin&lt;br /&gt;
  // it's 10:57:24 at the moment.&lt;br /&gt;
&lt;br /&gt;
  h := 10;&lt;br /&gt;
  m := 57;&lt;br /&gt;
  s := 24;&lt;br /&gt;
  &lt;br /&gt;
  if TryEncodeTime(h,m,s,0,currtime) then&lt;br /&gt;
    WriteLn(FormatFloat('0.#########',currtime));&lt;br /&gt;
    // 0.456527778&lt;br /&gt;
end.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Functions]]&lt;/div&gt;</summary>
		<author><name>Mighty</name></author>	</entry>

	</feed>