<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Time%3A%3AgetPosixTime</id>
	<title>Time::getPosixTime - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Time%3A%3AgetPosixTime"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Time::getPosixTime&amp;action=history"/>
	<updated>2026-07-24T19:44:57Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Time::getPosixTime&amp;diff=14963&amp;oldid=prev</id>
		<title>imported&gt;Shr0x в 12:41, 10 декабря 2024</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Time::getPosixTime&amp;diff=14963&amp;oldid=prev"/>
		<updated>2024-12-10T12:41:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ClientsideJsFunction}}&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
&lt;br /&gt;
=== Summary ===&lt;br /&gt;
Retrieves the POSIX system time, returning an object with year, month, day, hour, minute, and second based on the system clock.&lt;br /&gt;
&lt;br /&gt;
=== Syntax ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.game.time.getPosixTime(year, month, day, hour, minute, second);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required Parameters ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;year:&amp;#039;&amp;#039;&amp;#039; {{RageType|int}} - The current year from the POSIX time.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;month:&amp;#039;&amp;#039;&amp;#039; {{RageType|int}} - The current month from the POSIX time.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;day:&amp;#039;&amp;#039;&amp;#039; {{RageType|int}} - The current day from the POSIX time.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;hour:&amp;#039;&amp;#039;&amp;#039; {{RageType|int}} - The current hour from the POSIX time.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;minute:&amp;#039;&amp;#039;&amp;#039; {{RageType|int}} - The current minute from the POSIX time.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;second:&amp;#039;&amp;#039;&amp;#039; {{RageType|int}} - The current second from the POSIX time.&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Object:&amp;#039;&amp;#039;&amp;#039; Contains:&lt;br /&gt;
  * `year`&lt;br /&gt;
  * `month`&lt;br /&gt;
  * `day`&lt;br /&gt;
  * `hour`&lt;br /&gt;
  * `minute`&lt;br /&gt;
  * `second`&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
This example gets the current POSIX time and displays it in the in-game chat:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
const posixTime = mp.game.time.getPosixTime();&lt;br /&gt;
mp.gui.chat.push(`POSIX Time: ${posixTime.year}-${posixTime.month}-${posixTime.day} ${posixTime.hour}:${posixTime.minute}:${posixTime.second}`);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
{{Time_functions_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:Time API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Shr0x</name></author>
	</entry>
</feed>