<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://bf2tech.uturista.pt/index.php?action=history&amp;feed=atom&amp;title=BF2_Time</id>
	<title>BF2 Time - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://bf2tech.uturista.pt/index.php?action=history&amp;feed=atom&amp;title=BF2_Time"/>
	<link rel="alternate" type="text/html" href="https://bf2tech.uturista.pt/index.php?title=BF2_Time&amp;action=history"/>
	<updated>2026-08-06T00:38:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://bf2tech.uturista.pt/index.php?title=BF2_Time&amp;diff=31&amp;oldid=prev</id>
		<title>UTurista: Creating BF2 Time</title>
		<link rel="alternate" type="text/html" href="https://bf2tech.uturista.pt/index.php?title=BF2_Time&amp;diff=31&amp;oldid=prev"/>
		<updated>2017-09-28T17:03:21Z</updated>

		<summary type="html">&lt;p&gt;Creating BF2 Time&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Time is principly measured within Battlefield 2 by means of &amp;quot;wall time&amp;quot;--the time in high-resolution seconds since the server started running (e.g. &amp;quot;443.451488108&amp;quot;). Note that since the BF2 server does not restart between rounds (unlike the servers for Battlefield: 1942 and Battlefield: Vietnam, which both practially reboot between rounds), wall time continues to increase from round to round.&lt;br /&gt;
&lt;br /&gt;
The current wall time can be determined this way:&lt;br /&gt;
   timeNow = host.timer_getWallTime()&lt;br /&gt;
&lt;br /&gt;
Most &amp;#039;&amp;#039;(all?)&amp;#039;&amp;#039; time-related measurements inside BF2 are in seconds, and are based on wall time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other time functions are also available; for example:&lt;br /&gt;
  import time&lt;br /&gt;
  epochTime = time.time()  # Gives current [[wikipedia:Unix Epoch|epoch time]] (seconds since 1970 Jan 1)&lt;br /&gt;
  &lt;br /&gt;
  # Or, to get a formatted string containing a more user-friendly date and time:&lt;br /&gt;
  dateString = time.strftime(&amp;quot;%m-%d-%y %H:%M&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
See the [http://python.org/doc/2.3.4/lib/module-time.html Python Library Reference] for more information about ways to manipulate dates and times in Python.&lt;/div&gt;</summary>
		<author><name>UTurista</name></author>
	</entry>
</feed>