This wiki is archived and useful information is being migrated to the main bzflag.org website

Difference between revisions of "Bz getLocaltime"

From BZFlagWiki
Jump to: navigation, search
(New page: {{BZFS_API_Doc}} ==Overview== bz_getLocaltime is a function to fill a bz_localTime structure with values. Go to bz_localTime for structure format. ==Example== bz_localTime st; //...)
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{BZFS_API_Doc}}
+
{{apicall
 
+
| name          = bz_getLocaltime
==Overview==
+
| description  = Fills a bz_localTime object with values for the current time on the server.
bz_getLocaltime is a function to fill a [[bz_localTime]] structure with values.
+
| param1        = *ts
Go to [[bz_localTime]] for structure format.
+
| param1type    = bz_localTime
 
+
| param1desc    = bz_localTime object to fill.
==Example==
+
}}
bz_localTime st; // create a new [[bz_localTime]] structure st
+
bz_getLocaltime(&st); // fill st will values
+

Latest revision as of 23:34, 30 December 2008

void bz_getLocaltime (bz_localTime *ts)


Fills a bz_localTime object with values for the current time on the server.

Parameters:
*ts  -  bz_localTime object to fill.