<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.bzflag.org/index.php?action=history&amp;feed=atom&amp;title=Bz_Time</id>
	<title>Bz Time - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.bzflag.org/index.php?action=history&amp;feed=atom&amp;title=Bz_Time"/>
	<link rel="alternate" type="text/html" href="https://wiki.bzflag.org/index.php?title=Bz_Time&amp;action=history"/>
	<updated>2026-04-06T17:14:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://wiki.bzflag.org/index.php?title=Bz_Time&amp;diff=5450&amp;oldid=prev</id>
		<title>Yassen: Added bz_Time</title>
		<link rel="alternate" type="text/html" href="https://wiki.bzflag.org/index.php?title=Bz_Time&amp;diff=5450&amp;oldid=prev"/>
		<updated>2009-02-10T23:54:35Z</updated>

		<summary type="html">&lt;p&gt;Added bz_Time&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{BZFS_API_Doc}}&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
bz_Time is a structure for the local time of the server.&amp;lt;br&amp;gt;&lt;br /&gt;
To fill the new structure bz_Time, see [[bz_getLocaltime]] or [[bz_getUTCTime]].&lt;br /&gt;
&lt;br /&gt;
==Version Changes==&lt;br /&gt;
&lt;br /&gt;
In BZFlag 2.0.x, bz_Time was refered to as [[bz_localTime]].&lt;br /&gt;
&lt;br /&gt;
==Values==&lt;br /&gt;
&lt;br /&gt;
bz_Time{&lt;br /&gt;
&lt;br /&gt;
  int year;&lt;br /&gt;
  int month;&lt;br /&gt;
  int day;&lt;br /&gt;
  int hour;&lt;br /&gt;
  int minute;&lt;br /&gt;
  int second;&lt;br /&gt;
  int dayofweek;&lt;br /&gt;
  bool daylightSavings;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
void writeTime(int playerID){&lt;br /&gt;
&lt;br /&gt;
  [[bz_Time]] st; // create new object&amp;lt;br&amp;gt;&lt;br /&gt;
  [[bz_getLocaltime]](&amp;amp;st); // fill st with values&amp;lt;br&amp;gt;&lt;br /&gt;
  [[bz_sendTextMessagef]](BZ_SERVER,playerID,&amp;quot;The time is %i:%i.&amp;quot;,st.hour,st.minute); // print [hour]:[minute] to player&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Yassen</name></author>
	</entry>
</feed>