<?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_getUTCtime</id>
	<title>Bz getUTCtime - 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_getUTCtime"/>
	<link rel="alternate" type="text/html" href="https://wiki.bzflag.org/index.php?title=Bz_getUTCtime&amp;action=history"/>
	<updated>2026-04-06T14:23:49Z</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_getUTCtime&amp;diff=8040&amp;oldid=prev</id>
		<title>Sigonasr2: Add API Event page with example.</title>
		<link rel="alternate" type="text/html" href="https://wiki.bzflag.org/index.php?title=Bz_getUTCtime&amp;diff=8040&amp;oldid=prev"/>
		<updated>2011-10-19T05:27:26Z</updated>

		<summary type="html">&lt;p&gt;Add API Event page with example.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{apicall&lt;br /&gt;
| name          = bz_getUTCtime&lt;br /&gt;
| description   = Fills a bz_Time object with values for the Universal Time Coordinated (UTC) time.&lt;br /&gt;
| param1        = *ts&lt;br /&gt;
| param1type    = bz_Time&lt;br /&gt;
| param1desc    = bz_Time object to fill.&lt;br /&gt;
}}&lt;br /&gt;
===Example===&lt;br /&gt;
Get the UTC time and display it to the user upon joining.&lt;br /&gt;
 case bz_ePlayerJoinEvent: {&lt;br /&gt;
 	bz_Time currentTime;&lt;br /&gt;
 	bz_getUTCtime(&amp;amp;currentTime);&lt;br /&gt;
 	bz_sendTextMessagef(BZ_SERVER,((bz_PlayerJoinPartEventData_V1*)eventData)-&amp;gt;playerID,&amp;quot;Welcome! The current date is %d/%d/%d at %d:%d:%d.&amp;quot;,currentTime.month,currentTime.day,currentTime.year,currentTime.hour,currentTime.minute,currentTime.second);&lt;br /&gt;
 }break;&lt;/div&gt;</summary>
		<author><name>Sigonasr2</name></author>
	</entry>
</feed>