<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://g1r-mp.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Os.time</id>
	<title>Os.time - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://g1r-mp.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Os.time"/>
	<link rel="alternate" type="text/html" href="https://g1r-mp.com/wiki/index.php?title=Os.time&amp;action=history"/>
	<updated>2026-10-01T15:29:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://g1r-mp.com/wiki/index.php?title=Os.time&amp;diff=990&amp;oldid=prev</id>
		<title>QCherry: Release 0.1.4 BUILD133 / Protocol 36 and document authenticated event origin</title>
		<link rel="alternate" type="text/html" href="https://g1r-mp.com/wiki/index.php?title=Os.time&amp;diff=990&amp;oldid=prev"/>
		<updated>2026-09-21T20:40:57Z</updated>

		<summary type="html">&lt;p&gt;Release 0.1.4 BUILD133 / Protocol 36 and document authenticated event origin&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:40, 21 September 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:os.time}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:os.time}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Available since update 0.1.4, BUILD126 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(in development)&lt;/del&gt;.&#039;&#039;&#039; Available in both client and server resource scripts with the corresponding updated binary. The public release &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;remains &lt;/del&gt;0.1.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;3&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Available since update 0.1.4, BUILD126.&#039;&#039;&#039; Available in both client and server resource scripts with the corresponding updated binary. The &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;current &lt;/ins&gt;public release &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;is &lt;/ins&gt;0.1.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;4 / Protocol 36&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Returns the current host&amp;#039;s wall-clock time as Unix seconds. This is a deliberately restricted function, not access to Lua&amp;#039;s full operating-system library.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Returns the current host&amp;#039;s wall-clock time as Unix seconds. This is a deliberately restricted function, not access to Lua&amp;#039;s full operating-system library.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>QCherry</name></author>
	</entry>
	<entry>
		<id>https://g1r-mp.com/wiki/index.php?title=Os.time&amp;diff=947&amp;oldid=prev</id>
		<title>QCherry: Document 0.1.4 safe os.time, resource security and PNG/WebP support</title>
		<link rel="alternate" type="text/html" href="https://g1r-mp.com/wiki/index.php?title=Os.time&amp;diff=947&amp;oldid=prev"/>
		<updated>2026-09-20T20:01:03Z</updated>

		<summary type="html">&lt;p&gt;Document 0.1.4 safe os.time, resource security and PNG/WebP support&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:os.time}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Available since update 0.1.4, BUILD126 (in development).&amp;#039;&amp;#039;&amp;#039; Available in both client and server resource scripts with the corresponding updated binary. The public release remains 0.1.3.&lt;br /&gt;
&lt;br /&gt;
Returns the current host&amp;#039;s wall-clock time as Unix seconds. This is a deliberately restricted function, not access to Lua&amp;#039;s full operating-system library.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local timestamp = os.time()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters and return value ==&lt;br /&gt;
No parameters are accepted. Returns an integer-valued Lua number: seconds since the Unix epoch (1970-01-01 UTC). Passing any argument, including &amp;lt;code&amp;gt;nil&amp;lt;/code&amp;gt; or a date table, raises a Lua error. Standard Lua&amp;#039;s &amp;lt;code&amp;gt;os.time(table)&amp;lt;/code&amp;gt; overload is not supported.&lt;br /&gt;
&lt;br /&gt;
== Example: ordinary random choices ==&lt;br /&gt;
Seed once when the resource starts, not before every random draw:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
math.randomseed(os.time())&lt;br /&gt;
local roll = math.random(1, 100)&lt;br /&gt;
outputDebugString(&amp;quot;Roll: &amp;quot; .. roll)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This is not cryptographically secure randomness. Resources seeded in the same second may produce the same sequence. Do not use it for passwords, authentication tokens or security-sensitive identifiers.&lt;br /&gt;
&lt;br /&gt;
== Sandbox and clock behaviour ==&lt;br /&gt;
* The host creates a fresh resource-local &amp;lt;code&amp;gt;os&amp;lt;/code&amp;gt; table containing only &amp;lt;code&amp;gt;time&amp;lt;/code&amp;gt;; it never opens the native OS library.&lt;br /&gt;
* &amp;lt;code&amp;gt;os.execute&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;os.exit&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;os.getenv&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;os.remove&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;os.rename&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;os.tmpname&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;os.setlocale&amp;lt;/code&amp;gt; and all other OS-library functions remain unavailable.&lt;br /&gt;
* Filesystem, process execution, native module loading and Lua bytecode restrictions remain in place. See [[Scripting limits]].&lt;br /&gt;
* This is not the in-game time. The client reads its own computer clock; the server reads its own host clock. Client timestamps are not authoritative or automatically synchronized.&lt;br /&gt;
* Wall-clock adjustments can move this value forwards or backwards. Use [[getTickCount]] for elapsed-time measurement.&lt;br /&gt;
* Public 0.1.3 and earlier development builds do not expose this function; an updated script alone does not enable it.&lt;br /&gt;
&lt;br /&gt;
[[Category:Lua Functions]]&lt;br /&gt;
[[Category:Shared Functions]]&lt;br /&gt;
[[Category:Utility Functions]]&lt;br /&gt;
[[Category:Timer Functions]]&lt;/div&gt;</summary>
		<author><name>QCherry</name></author>
	</entry>
</feed>