<?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%3AgetLocalTime</id>
	<title>Time::getLocalTime - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Time%3A%3AgetLocalTime"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Time::getLocalTime&amp;action=history"/>
	<updated>2026-07-24T20:09:17Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Time::getLocalTime&amp;diff=14950&amp;oldid=prev</id>
		<title>imported&gt;Shr0x в 12:40, 10 декабря 2024</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Time::getLocalTime&amp;diff=14950&amp;oldid=prev"/>
		<updated>2024-12-10T12:40:27Z</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 local system time, returning an object containing year, month, day, hour, minute, and second.&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.getLocalTime(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 based on the local system clock.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;month:&amp;#039;&amp;#039;&amp;#039; {{RageType|int}} - The current month based on the local system clock.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;day:&amp;#039;&amp;#039;&amp;#039; {{RageType|int}} - The current day based on the local system clock.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;hour:&amp;#039;&amp;#039;&amp;#039; {{RageType|int}} - The current hour based on the local system clock.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;minute:&amp;#039;&amp;#039;&amp;#039; {{RageType|int}} - The current minute based on the local system clock.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;second:&amp;#039;&amp;#039;&amp;#039; {{RageType|int}} - The current second based on the local system clock.&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 the following properties:&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 retrieves the local system 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 localTime = mp.game.time.getLocalTime();&lt;br /&gt;
mp.gui.chat.push(`Local Time: ${localTime.year}-${localTime.month}-${localTime.day} ${localTime.hour}:${localTime.minute}:${localTime.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>